From 4512eaf2b4e1e8e7011585099440d1b09351aa0b Mon Sep 17 00:00:00 2001 From: liugang Date: Mon, 10 Oct 2022 13:40:04 +0800 Subject: [PATCH] * Fix bug #27899. --- 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 dad5f5e8b1..f46f363bc3 100644 --- a/module/execution/view/kanban.html.php +++ b/module/execution/view/kanban.html.php @@ -118,7 +118,7 @@ js::set('priv', 'canDeleteStory' => common::hasPriv('story', 'delete'), 'canChangeStory' => common::hasPriv('story', 'change'), 'canCloseStory' => common::hasPriv('story', 'close'), - 'canUnlinkStory' => common::hasPriv('execution', 'unlinkStory'), + 'canUnlinkStory' => common::hasPriv('execution', 'unlinkStory') && !empty($execution->hasProduct), 'canViewStory' => common::hasPriv('execution', 'storyView'), ) );