Class: Types::WorkItems::Widgets::ParticipantsType

Inherits:
BaseObject
  • Object
show all
Defined in:
app/graphql/types/work_items/widgets/participants_type.rb

Overview

Disabling widget level authorization as we scope by ‘.visible_participants` rubocop:disable Graphql/AuthorizeTypes – see 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

#present, #unpresented

Instance Method Details

#participantsObject



18
19
20
# File 'app/graphql/types/work_items/widgets/participants_type.rb', line 18

def participants
  object.visible_participants(current_user)
end