Commit 07416fdf authored by Chad Woolley's avatar Chad Woolley

Fix CAPTCHA modal for setting issue non-confidential

This bug was "introduced" by
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/58603/diffs#e25cb4fe8f25497afbbca9fbd3662329427e6ab4_18_20
but only in the sense that the backend is now performing the spam check
properly, but not fully handling the CAPTCHA display if spam was detected.

Changelog: fixed
MR: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/65659
parent e749de32
......@@ -3,6 +3,8 @@
module Mutations
module Issues
class SetConfidential < Base
include Mutations::SpamProtection
graphql_name 'IssueSetConfidential'
argument :confidential,
......@@ -19,6 +21,7 @@ module Mutations
::Issues::UpdateService.new(project: project, current_user: current_user, params: { confidential: confidential }, spam_params: spam_params)
.execute(issue)
check_spam_action_response!(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