Description
I think it would be good for the library to include examples on authorization regarding indirect relationships.
Example:
- Entities: Organization, User, Folder
- Relations: user -> member -> organization, user -> owner -> folder, folder -> organization -> organization
- Permissions:
- CanRead:
user -> owner -> folder or user -> member -> organization
This is a somewhat essential functionality that ensures some situations works smoothly:
A request in which you only have the userID and folderID, and can authorize through the indirect organization relation without needing the organizationID.
At the moment it's not very clear to someone who is not knowledgeable into the library or zanzibar overall, how that would be implemented.
Description
I think it would be good for the library to include examples on authorization regarding indirect relationships.
Example:
user -> owner -> folderoruser -> member -> organizationThis is a somewhat essential functionality that ensures some situations works smoothly:
A request in which you only have the userID and folderID, and can authorize through the indirect organization relation without needing the organizationID.
At the moment it's not very clear to someone who is not knowledgeable into the library or zanzibar overall, how that would be implemented.