Skip to content

Docs: Improve documentation on indirect relation permission #12

@sonalys

Description

@sonalys

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.

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions