diff options
Diffstat (limited to 'app/serializers/issue_sidebar_basic_entity.rb')
-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 |