From 330f6c2c8e78e708593f794b7adfb468add3732e Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Thu, 31 Oct 2024 16:19:40 +0800 Subject: [PATCH] * [bug#56643] hide create btn for bug view. --- module/bug/ui/view.html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/bug/ui/view.html.php b/module/bug/ui/view.html.php index 8e3e1e6925..f84ae8a476 100644 --- a/module/bug/ui/view.html.php +++ b/module/bug/ui/view.html.php @@ -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');