summaryrefslogtreecommitdiff
path: root/lib/gitlab/quick_actions
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-06-10 09:11:12 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-06-10 09:11:12 +0000
commitf42c4be1c0d5247fac0c059ec41c9a1961485aed (patch)
treeb17fdfe021c7690211dd5c21c945113980bde651 /lib/gitlab/quick_actions
parentdf9e161ad4881eaef7c948679777bac403b0b7c8 (diff)
downloadgitlab-ce-f42c4be1c0d5247fac0c059ec41c9a1961485aed.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/quick_actions')
-rw-r--r--lib/gitlab/quick_actions/issue_actions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/quick_actions/issue_actions.rb b/lib/gitlab/quick_actions/issue_actions.rb
index 2f89774a257..e9ef4157aa3 100644
--- a/lib/gitlab/quick_actions/issue_actions.rb
+++ b/lib/gitlab/quick_actions/issue_actions.rb
@@ -306,7 +306,7 @@ module Gitlab
types Issue
condition do
current_user.can?(:set_issue_crm_contacts, quick_action_target) &&
- CustomerRelations::Contact.exists_for_group?(quick_action_target.project.root_ancestor)
+ quick_action_target.customer_relations_contacts.exists?
end
execution_message do
_('One or more contacts were successfully removed.')