Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-10-27 13:13:35 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-10-27 13:13:35 +0300
commite8ae58a7c189407375b3f575b7aa8fb17a1e4f99 (patch)
tree027bb4d3f911b7a07c7552f142d9b3fad32e9318 /app/graphql/mutations
parent51b27ab58055b65e14e68b19604e4823389adb73 (diff)
Add latest changes from gitlab-org/security/gitlab@14-4-stable-ee
Diffstat (limited to 'app/graphql/mutations')
-rw-r--r--app/graphql/mutations/issues/set_severity.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/graphql/mutations/issues/set_severity.rb b/app/graphql/mutations/issues/set_severity.rb
index 778563ba053..872a0e7b33d 100644
--- a/app/graphql/mutations/issues/set_severity.rb
+++ b/app/graphql/mutations/issues/set_severity.rb
@@ -8,6 +8,8 @@ module Mutations
argument :severity, Types::IssuableSeverityEnum, required: true,
description: 'Set the incident severity level.'
+ authorize :admin_issue
+
def resolve(project_path:, iid:, severity:)
issue = authorized_find!(project_path: project_path, iid: iid)
project = issue.project