private fun checkIfRelationIsAllowed(relationshipDefinition: RelationshipDefinition, authorizationName: String): Boolean
Checks if a relation is allowed. A relation is allowed if allow on the parent side of the relation implies allow on the remote side of the relation. Can be used to improve authorization checking when fetching nested data structures. Allow is implied if the inverse relation (if existing) is allowed from related or if this is a one-side and allows from the related side (and has no other allow rules, neither other allow from related nor allow rules).
Return
true iff allow for the remote nodes is implied
Parameters
relationshipDefinition
defines the relation to check
authorizationName
name of the authorization, used to obtain the MergedAuthorization