* [bug#63992] check privilege before display the browseScene tag.

This commit is contained in:
liugang
2025-07-11 13:49:47 +08:00
parent a428f6cfce
commit ae304c6487
+2 -1
View File
@@ -41,6 +41,7 @@ $canCreateSuite = $canModify && hasPriv('testsuite', 'create');
$canBrowseUnits = hasPriv('testtask', 'browseunits');
$canBrowseZeroCase = hasPriv('testcase', 'zerocase') && $rawMethod != 'browseunits';
$canBrowseGroupCase = hasPriv('testcase', 'groupcase');
$canBrowseScene = hasPriv('testcase', 'browseScene') && ($rawMethod == 'browse' || $rawMethod == 'browsescene') && !$isFromDoc;
$canAutomation = !$isExecutionApp && $canModify && hasPriv('testcase', 'automation') && !empty($productID) && $rawMethod != 'browseunits';
$canExport = !$isExecutionApp && hasPriv('testcase', 'export');
$canExportTemplate = !$isExecutionApp && hasPriv('testcase', 'exportTemplate');
@@ -213,7 +214,7 @@ featureBar
($rawMethod == 'zerocase' && $pager->recTotal != '') ? span(setClass('label size-sm rounded-full white'), $pager->recTotal) : null,
)
) : null,
!$isFromDoc && ($rawMethod == 'browse' || $rawMethod == 'browsescene') ? li
$canBrowseScene ? li
(
set::className('nav-item'),
a