* [bug#65033,done,0.3h,0h] Fix check btn priv error.

This commit is contained in:
wangyuting
2025-09-03 11:55:15 +08:00
parent 178154836b
commit 2bd06cb947
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ featureBar
toolbar
(
$objectType != 'project' && $objectType != 'execution' ? btngroup
$objectType != 'project' && $objectType != 'execution' && hasPriv('testreport', 'create') ? btngroup
(
btn
(
+3 -3
View File
@@ -32,13 +32,13 @@ toolbar
(
btngroup
(
btn
hasPriv('testsuite', 'create') ? btn
(
setClass('btn primary'),
set::icon('plus'),
set::url(helper::createLink('testsuite', 'create', "productID={$product->id}")),
$lang->testsuite->create
)
) : null
)
);
@@ -54,7 +54,7 @@ dtable
set::footPager(usePager()),
set::emptyTip($lang->testsuite->noTestsuite),
set::createTip($lang->testsuite->create),
set::createLink(createLink('testsuite', 'create', "productID={$product->id}"))
hasPriv('testsuite', 'create') ? set::createLink(createLink('testsuite', 'create', "productID={$product->id}")) : null
);
render();