* [bug#48887, done, 0.6h] Do not display batch creation and scene building buttons under all products within a project.

This commit is contained in:
hufangzhou
2024-06-05 11:23:52 +08:00
parent c0e5e36d2a
commit 8951cb71fd
+2 -2
View File
@@ -42,8 +42,8 @@ $canImport = hasPriv('testcase', 'import');
$canImportFromLib = hasPriv('testcase', 'importFromLib');
$canImportXmind = hasPriv('testcase', 'importXmind');
$canCreateCase = hasPriv('testcase', 'create');
$canBatchCreateCase = $this->app->tab == 'qa' && hasPriv('testcase', 'batchCreate');
$canCreateScene = $this->app->tab == 'qa' && hasPriv('testcase', 'createScene');
$canBatchCreateCase = $productID && hasPriv('testcase', 'batchCreate');
$canCreateScene = $productID && hasPriv('testcase', 'createScene');
$canImportUnitResult = hasPriv('testtask', 'importUnitResult');
$canCreate = $canCreateCase || $canBatchCreateCase || $canCreateScene;