Ben
03/11/2024, 11:54 PMdefinition user {
relation platform: platform
permission sensitive_action: self + platform->super_admin
}
I think adding an extra self
relation would work but that involves creating the tuple for every object which is not ideal:
definition user {
relation self: user
relation platform: platform
permission sensitive_action: self + platform->super_admin
}
Is there any better way to do so (and/or would that even work)?