diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-30 00:10:44 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-30 00:10:44 +0300 |
commit | cb37aee9894007e60893693d5d48199ea0f0958f (patch) | |
tree | 49cfdd627a74b5f3f94b0a498a39e3be3b38af33 /app/serializers | |
parent | 888564d614552b19b44029f530a67592d66c06fd (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/serializers')
-rw-r--r-- | app/serializers/issue_sidebar_basic_entity.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/issue_sidebar_basic_entity.rb b/app/serializers/issue_sidebar_basic_entity.rb index 7222b5df425..2450c6a4d85 100644 --- a/app/serializers/issue_sidebar_basic_entity.rb +++ b/app/serializers/issue_sidebar_basic_entity.rb @@ -12,7 +12,7 @@ class IssueSidebarBasicEntity < IssuableSidebarBasicEntity end expose :show_crm_contacts do |issuable| - current_user&.can?(:read_crm_contact, issuable.project.root_ancestor) && + current_user&.can?(:read_crm_contacts, issuable) && CustomerRelations::Contact.exists_for_group?(issuable.project.root_ancestor) end end |