#[Q] Super Admin Role
1 messages · Page 1 of 1 (latest)
Hi @raven grove, we’re fine thank you, hope everything goes well on your side too. So about the issue we don’t have default role definitions. How you can do is basicallt you can create higher level entity which will have a admin relation in it. Then assign users to that admin role with creating relation tuples.
And the relation tuple you created should look similar to “higher_entity#admin@user:2”
If we say that higher_entity as organization: you should modify your schema similar like below:
entity user {}
entity organization {
relation admin @user
}
entity course {
relation org @organization
relation owner @user
relation member @user
action read = owner or member or org.admin
action write = owner or org.admin
}