Class: Types::WorkItems::Widgets::AssigneesType

Inherits:
BaseObject
  • Object
show all
Defined in:
app/graphql/types/work_items/widgets/assignees_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

#can_invite_members?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'app/graphql/types/work_items/widgets/assignees_type.rb', line 27

def can_invite_members?
  Ability.allowed?(current_user, :admin_project_member, object.work_item.project)
end