Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document complex use case around entities #2890

Open
mooreds opened this issue Feb 14, 2024 · 0 comments
Open

Document complex use case around entities #2890

mooreds opened this issue Feb 14, 2024 · 0 comments
Labels

Comments

@mooreds
Copy link
Contributor

mooreds commented Feb 14, 2024

Mapping permissions in a hierarchical manner

  • company -> department -> document

User can be granted permissions (read, write, admin) to any of these.

How do you roll it up to know which users have access to document A? Which documents does user B have access to?

You'd need to store data in the entity.data field to store the tree, then run queries against the document A or user B to find out the answer.

Include a sample app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant