The following example uses a User-Role
relation in order to codify the more complex permission behavior required for Activites. The relation allows both:
- A hierarchical page structure for organizing permissions
- Fine-grained rules around page permissions, no matter their position in the hierarchy.
We begin by defining a Role
type listing all possible roles that a user may have in Activities. Furthermore, we define the Perm
type to enumerate possible permissions