Class: Types::WorkItems::Widgets::NotificationsType

Inherits:
BaseObject
  • Object
show all
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, authorize, authorized?, #current_user, #id

Methods included from Gitlab::Graphql::Present

#present, #unpresented

Instance Method Details

#subscribedObject



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