[GraphQL] fix groupe instructeur type definition
This commit is contained in:
parent
0b16ca006a
commit
e28c05bb92
1 changed files with 6 additions and 6 deletions
|
@ -5,13 +5,13 @@ module Types
|
|||
global_id_field :id
|
||||
field :label, String, null: false
|
||||
field :instructeurs, [Types::ProfileType], null: false
|
||||
end
|
||||
|
||||
def instructeurs
|
||||
Loaders::Association.for(object.class, :instructeurs).load(object)
|
||||
end
|
||||
def instructeurs
|
||||
Loaders::Association.for(object.class, :instructeurs).load(object)
|
||||
end
|
||||
|
||||
def self.authorized?(object, context)
|
||||
authorized_demarche?(object.procedure, context)
|
||||
def self.authorized?(object, context)
|
||||
authorized_demarche?(object.procedure, context)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue