We have a role system whereby denial is always more important than an allow.
- A user can be assigned to many roles
- Each role has a number of resources and permissions
- Each permission has an allow/inherit/deny set of permissions.
- Inherit means basically do nothing
- Allow is only allowed if no deny is specified on any other roles for that action/resource
How can we implement this using lock?