summaryrefslogtreecommitdiff
path: root/app/services/issuable_base_service.rb
diff options
context:
space:
mode:
authorGitLab Release Tools Bot <delivery-team+release-tools@gitlab.com>2021-10-28 12:15:22 +0000
committerGitLab Release Tools Bot <delivery-team+release-tools@gitlab.com>2021-10-28 12:15:22 +0000
commit11657a33e97a26f699638ab26ef934c8298126b7 (patch)
treebb99c5ce913bce83b0201023468b950911935246 /app/services/issuable_base_service.rb
parent2bbed5eb0d53a506313d8f95028375586b17d40c (diff)
parent893b5cb69e4ce384f1e208906a9d3db387a9c72b (diff)
downloadgitlab-ce-11657a33e97a26f699638ab26ef934c8298126b7.tar.gz
Merge remote-tracking branch 'dev/14-3-stable' into 14-3-stable
Diffstat (limited to 'app/services/issuable_base_service.rb')
-rw-r--r--app/services/issuable_base_service.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/services/issuable_base_service.rb b/app/services/issuable_base_service.rb
index 59e521853de..2daf098b94a 100644
--- a/app/services/issuable_base_service.rb
+++ b/app/services/issuable_base_service.rb
@@ -142,6 +142,7 @@ class IssuableBaseService < ::BaseProjectService
def filter_severity(issuable)
severity = params.delete(:severity)
return unless severity && issuable.supports_severity?
+ return unless can_admin_issuable?(issuable)
severity = IssuableSeverity::DEFAULT unless IssuableSeverity.severities.key?(severity)
return if severity == issuable.severity