From fc755b3c6587d82fd4e432f4d724fb231ee0a41d Mon Sep 17 00:00:00 2001 From: tanghucheng Date: Thu, 29 Jun 2023 13:14:48 +0800 Subject: [PATCH] * Fix bug #36087. --- module/execution/view/kanban.html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/execution/view/kanban.html.php b/module/execution/view/kanban.html.php index 9cdf19f910..c19501951a 100644 --- a/module/execution/view/kanban.html.php +++ b/module/execution/view/kanban.html.php @@ -77,7 +77,7 @@ $hasBugButton = $features['qa'] && ($canCreateBug || $canBatchCreateBug); $canCreateStory = $features['story'] && $productID && common::hasPriv('story', 'create'); $canBatchCreateStory = $features['story'] && $productID && common::hasPriv('story', 'batchCreate'); -$canLinkStory = $features['story'] && $productID && common::hasPriv('execution', 'linkStory') && !empty($execution->hasProduct); +$canLinkStory = $features['story'] && $productID && common::hasPriv('execution', 'linkStory'); $canLinkStoryByPlan = $features['story'] && $productID && common::hasPriv('execution', 'importplanstories') && !empty($project->hasProduct); $hasStoryButton = $features['story'] && ($canCreateStory || $canBatchCreateStory || $canLinkStory || $canLinkStoryByPlan);