* [bug#62396,done,0.2h] fix bug.

This commit is contained in:
sunguangming
2025-05-13 13:52:46 +08:00
committed by 刘刚
parent 2f8996197d
commit ec245c8ad1
+1 -1
View File
@@ -22,7 +22,7 @@ jsVar('isFromDoc', $isFromDoc);
$topSceneCount = count(array_filter(array_map(function($case){return $case->isScene && $case->grade == 1;}, $cases)));
$canBatchRun = $canModify && hasPriv('testtask', 'batchRun') && !$isOnlyScene;
$canBatchEdit = $canModify && hasPriv('testcase', 'batchEdit') && !$isOnlyScene;
$canBatchEdit = $canModify && hasPriv('testcase', 'batchEdit') && !$isOnlyScene && $productID;
$canBatchReview = $canModify && hasPriv('testcase', 'batchReview') && !$isOnlyScene && ($config->testcase->needReview || !empty($config->testcase->forceReview));
$canBatchDelete = $canModify && hasPriv('testcase', 'batchDelete') && !$isOnlyScene;
$canBatchChangeType = $canModify && hasPriv('testcase', 'batchChangeType') && !$isOnlyScene;