Class: Types::WorkItems::Widgets::NotificationsType
- Inherits:
-
BaseObject
- Object
- GraphQL::Schema::Object
- BaseObject
- Types::WorkItems::Widgets::NotificationsType
- Defined in:
- app/graphql/types/work_items/widgets/notifications_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
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
#subscribed ⇒ Object
19 20 21 |
# File 'app/graphql/types/work_items/widgets/notifications_type.rb', line 19 def subscribed object.work_item.subscribed?(current_user, object.work_item.project) end |