Commit 412c6209 authored by Dylan Griffith's avatar Dylan Griffith

Merge branch '334707-fix-captcha-for-set-confidential' into 'master'

Fix CAPTCHA modal not displaying when setting issue non-confidential

See merge request gitlab-org/gitlab!65659
parents 6446b6aa 07416fdf
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
module Mutations module Mutations
module Issues module Issues
class SetConfidential < Base class SetConfidential < Base
include Mutations::SpamProtection
graphql_name 'IssueSetConfidential' graphql_name 'IssueSetConfidential'
argument :confidential, argument :confidential,
...@@ -19,6 +21,7 @@ module Mutations ...@@ -19,6 +21,7 @@ module Mutations
::Issues::UpdateService.new(project: project, current_user: current_user, params: { confidential: confidential }, spam_params: spam_params) ::Issues::UpdateService.new(project: project, current_user: current_user, params: { confidential: confidential }, spam_params: spam_params)
.execute(issue) .execute(issue)
check_spam_action_response!(issue)
{ {
issue: issue, issue: issue,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment