Ben
05/18/2024, 4:03 AMdefinition user {}
definition org {
relation active_member: user
}
definition document {
relation org: org
relation viewer: user | group#member
permission view = org->active_member & viewer
}
The issue is that this stops working if we support sharing documents between orgs.
I was thinking of having a global platform
entity on which I could define the active users (similar to the super admin example), I’m just worried of the performance impact of potentially having millions of active users in the platform and having to use it in an intersection at almost every check