* Disabled story estimate.

This commit is contained in:
sunguangming
2024-05-20 09:36:21 +08:00
parent 93e0d1a134
commit 2c0bd5d262
+1 -1
View File
@@ -1947,7 +1947,7 @@ class storyTao extends storyModel
$canCreateTask = common::hasPriv('task', 'create') && $story->status == 'active' && $story->isParent == '0' && $story->type == 'story';
$canBatchCreateTask = common::hasPriv('task', 'batchCreate') && $story->status == 'active' && $story->isParent == '0' && $story->type == 'story';
$canStoryEstimate = common::hasPriv('execution', 'storyEstimate');
$canStoryEstimate = common::hasPriv('execution', 'storyEstimate') && $story->type == 'story';
$actions[] = array('name' => 'createTask', 'url' => $canCreateTask ? $createTaskLink : null, 'disabled' => !$canCreateTask, 'className' => 'create-task-btn');
$actions[] = array('name' => 'batchCreateTask', 'url' => $canBatchCreateTask ? $batchCreateTaskLink : null, 'disabled' => !$canBatchCreateTask);