-
Is it recommended to keep a "mirror" of the permissions in our backend DB, such as groups, guests, members, their roles, etc... To expand on this, this is mostly a UI question. When rendering a UI in the frontend we need to query the backend that will return the users who have access to the document (and what role they have). Should that information be stored in the backend database as join tables or is it "safe" and good practice to just call:
and then query our database by filtering the ID's in a sql query. The alternative is storing those relations such as (with typeorm) we can call For reference I read: https://openfga.dev/docs/interacting/search-with-permissions |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@xtc on discord left some useful points to take into consideration and I believe it answers my question.
|
Beta Was this translation helpful? Give feedback.
@xtc on discord left some useful points to take into consideration and I believe it answers my question.