* [bug#56643] hide create btn for bug view.
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user