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'), ) );