Merge branch feature/workflowgroup of zentao/zentaopms (#12742)
This commit is contained in:
@@ -57,10 +57,10 @@ $canBatchCreateRisk = $canModifyExecution && common::hasPriv('risk', 'batchCrea
|
||||
$canCreateBug = ($canModifyExecution && $productID && common::hasPriv('bug', 'create'));
|
||||
$canBatchCreateBug = ($canModifyExecution && $productID && common::hasPriv('bug', 'batchCreate'));
|
||||
$canImportBug = ($canModifyExecution && $productID && !$isLimited && common::hasPriv('execution', 'importBug'));
|
||||
$canCreateStory = ($canModifyExecution && $productID && common::hasPriv('story', 'create'));
|
||||
$canBatchCreateStory = ($canModifyExecution && $productID && common::hasPriv('story', 'batchCreate'));
|
||||
$canLinkStory = ($canModifyExecution && $productID && common::hasPriv('execution', 'linkStory') && !empty($execution->hasProduct));
|
||||
$canLinkStoryByPlan = ($canModifyExecution && $productID && common::hasPriv('execution', 'importplanstories') && !$hiddenPlan && !empty($execution->hasProduct));
|
||||
$canCreateStory = (!$hasFrozenStories && $canModifyExecution && $productID && common::hasPriv('story', 'create'));
|
||||
$canBatchCreateStory = (!$hasFrozenStories && $canModifyExecution && $productID && common::hasPriv('story', 'batchCreate'));
|
||||
$canLinkStory = (!$hasFrozenStories && $canModifyExecution && $productID && common::hasPriv('execution', 'linkStory') && !empty($execution->hasProduct));
|
||||
$canLinkStoryByPlan = (!$hasFrozenStories && $canModifyExecution && $productID && common::hasPriv('execution', 'importplanstories') && !$hiddenPlan && !empty($execution->hasProduct));
|
||||
$hasStoryButton = !$hasFrozenStories && ($canCreateStory or $canBatchCreateStory or $canLinkStory or $canLinkStoryByPlan);
|
||||
$hasTaskButton = ($canCreateTask or $canBatchCreateTask or $canImportBug);
|
||||
$hasBugButton = ($canCreateBug or $canBatchCreateBug);
|
||||
|
||||
Reference in New Issue
Block a user