* Format codes.

This commit is contained in:
daitingting
2023-10-26 01:48:38 +00:00
parent d79e876f4b
commit 83bccea2aa
+19 -19
View File
@@ -25,26 +25,26 @@ $initModule = isset($moduleID) ? (int)$moduleID : 0;
$rawMethod = $app->rawMethod;
$load = $rawMethod !== 'browse' ? null : 'table';
$canModify = common::canModify('product', $product);
$canSwitchCaseType = $this->app->tab == 'qa';
$canDisplaySuite = $this->app->tab == 'qa' && $rawMethod != 'browseunits';
$canManageModule = hasPriv('tree', 'browse') && !empty($productID);
$canCreateSuite = hasPriv('testsuite', 'create');
$canBrowseUnits = hasPriv('testtask', 'browseunits');
$canBrowseZeroCase = hasPriv('testcase', 'zerocase') && $rawMethod != 'browseunits';
$canBrowseGroupCase = hasPriv('testcase', 'groupcase');
$canAutomation = hasPriv('testcase', 'automation') && !empty($productID) && $rawMethod != 'browseunits';
$canExport = hasPriv('testcase', 'export');
$canExportTemplate = hasPriv('testcase', 'exportTemplate');
$canExportXmind = hasPriv('testcase', 'exportXmind');
$canImport = hasPriv('testcase', 'import');
$canImportFromLib = hasPriv('testcase', 'importFromLib');
$canImportXmind = hasPriv('testcase', 'importXmind');
$canCreateCase = hasPriv('testcase', 'create');
$canBatchCreateCase = hasPriv('testcase', 'batchCreate');
$canCreateScene = hasPriv('testcase', 'createScene');
$canModify = common::canModify('product', $product);
$canSwitchCaseType = $this->app->tab == 'qa';
$canDisplaySuite = $this->app->tab == 'qa' && $rawMethod != 'browseunits';
$canManageModule = hasPriv('tree', 'browse') && !empty($productID);
$canCreateSuite = hasPriv('testsuite', 'create');
$canBrowseUnits = hasPriv('testtask', 'browseunits');
$canBrowseZeroCase = hasPriv('testcase', 'zerocase') && $rawMethod != 'browseunits';
$canBrowseGroupCase = hasPriv('testcase', 'groupcase');
$canAutomation = hasPriv('testcase', 'automation') && !empty($productID) && $rawMethod != 'browseunits';
$canExport = hasPriv('testcase', 'export');
$canExportTemplate = hasPriv('testcase', 'exportTemplate');
$canExportXmind = hasPriv('testcase', 'exportXmind');
$canImport = hasPriv('testcase', 'import');
$canImportFromLib = hasPriv('testcase', 'importFromLib');
$canImportXmind = hasPriv('testcase', 'importXmind');
$canCreateCase = hasPriv('testcase', 'create');
$canBatchCreateCase = hasPriv('testcase', 'batchCreate');
$canCreateScene = hasPriv('testcase', 'createScene');
$canImportUnitResult = hasPriv('testtask', 'importUnitResult');
$canCreate = $canCreateCase || $canBatchCreateCase || $canCreateScene;
$canCreate = $canCreateCase || $canBatchCreateCase || $canCreateScene;
$lang->testcase->typeList[''] = $lang->testcase->allType;
if(!isset($param)) $param = 0;