#Global Roles

1 messages · Page 1 of 1 (latest)

opaque stream
#

Hello @stray mulch , if you want to define something globally, as you mentioned, you need to create an entity and connect its sub-entities to it. You would create a root entity, and this would make the system globally available for your request.

#

entity root {
    relation superadmin @user
}

entity repository {
    relation root @root

    relation admin  @user
    permission edit = root.superadmin or admin
}```
#

is that make sense?