Skip to content

Commit

Permalink
#1599 Fix organisation visibility on listOrganisation query
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Oct 28, 2020
1 parent 5e99077 commit 6892437
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ class OrganisationCtrl @Inject() (
override val entityName: String = "organisation"
override val publicProperties: PublicProperties = properties.organisation
override val initialQuery: Query =
Query.init[Traversal.V[Organisation]]("listOrganisation", (graph, authContext) => organisationSrv.visibleOrganisation(graph, authContext))
Query.init[Traversal.V[Organisation]](
"listOrganisation",
(graph, authContext) =>
organisationSrv
.startTraversal(graph)
.visible(authContext)
)
override val pageQuery: ParamQuery[OutputParam] = Query.withParam[OutputParam, Traversal.V[Organisation], IteratorOutput](
"page",
FieldsParser[OutputParam],
Expand Down

0 comments on commit 6892437

Please sign in to comment.