* [bug#56643] hide create btn for bug view.

This commit is contained in:
caoyanyi
2024-11-04 08:26:08 +08:00
committed by 刘刚
parent af1df1568b
commit 330f6c2c8e
+1 -1
View File
@@ -34,7 +34,7 @@ jsVar('executions', $executions);
jsVar('disableExecution', $lang->project->disableExecution);
$isInModal = isInModal();
$canCreateBug = hasPriv('bug', 'create');
$canCreateBug = $this->app->tab != 'devops' && hasPriv('bug', 'create');
$canViewRepo = hasPriv('repo', 'revision');
$canViewMR = hasPriv('mr', 'view');
$canViewBug = hasPriv('bug', 'view');