Simple policy checks based with relationships
Hello, friends!
So on the website documentation, we have an example of a simple policy check:
All well and good, but in a more real world example we'd probably have:
- Roles for Users
- Many permissions for those roles
- Potentially many permissions for users
So let's say we have something like the following:
A
And you want to check both the role, the permissions a role has and user permissions.
My question would be how do we go about doing the simple policy checks when we have a role-permission setup like this? Because the check itself isn't complex, it's more of a "how do we get there" question.
So on the website documentation, we have an example of a simple policy check:
All well and good, but in a more real world example we'd probably have:
- Roles for Users
- Many permissions for those roles
- Potentially many permissions for users
So let's say we have something like the following:
A
User resource:And you want to check both the role, the permissions a role has and user permissions.
My question would be how do we go about doing the simple policy checks when we have a role-permission setup like this? Because the check itself isn't complex, it's more of a "how do we get there" question.
