private fun getAuthorizedRelationshipDefinitions(relationshipDefinitions: List<RelationshipDefinition>, requiredPermission: Permission?): List<AuthorizedRelationDefinition>
Maps the provided RelationshipDefinitions to AuthorizedRelationDefinitions
Return
the mapped RelationshipDefinitions
Parameters
relationshipDefinitions
the RelationshipDefinitions to transform
requiredPermission
the permission which needs to be present on any node of the path