Class: Types::WorkItems::Widgets::CrmContactsType
- Inherits:
-
BaseObject
- Object
- GraphQL::Schema::Object
- BaseObject
- Types::WorkItems::Widgets::CrmContactsType
- Defined in:
- app/graphql/types/work_items/widgets/crm_contacts_type.rb
Overview
Disabling widget level authorization as it might be too granular and we already authorize the parent work item rubocop:disable Graphql/AuthorizeTypes – reason above
Instance Method Summary collapse
Methods inherited from BaseObject
accepts, assignable?, authorization, authorization_scopes, authorize, authorized?, #current_user, #id
Methods included from Gitlab::Graphql::Present
Instance Method Details
#contacts_available ⇒ Object
26 27 28 |
# File 'app/graphql/types/work_items/widgets/crm_contacts_type.rb', line 26 def contacts_available object.work_item.namespace.crm_group&.contacts&.exists? || false end |