Class: Types::WorkItems::Widgets::HierarchyType

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

#childrenObject


23
24
25
# File 'app/graphql/types/work_items/widgets/hierarchy_type.rb', line 23

def children
  object.children.inc_relations_for_permission_check
end