summaryrefslogtreecommitdiff
path: root/app/graphql/mutations/issues/set_severity.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/mutations/issues/set_severity.rb')
-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