user
04/06/2022, 6:55 PMtnarg
04/06/2022, 7:42 PMtnarg
04/06/2022, 7:45 PMuser
04/06/2022, 7:48 PMuser
04/06/2022, 7:54 PMDimitris
04/06/2022, 8:28 PMemre.savci
04/06/2022, 8:53 PMuser
04/06/2022, 9:07 PMDimitris
04/06/2022, 9:17 PMtnarg
04/06/2022, 9:27 PMDimitris
04/07/2022, 6:21 AMDimitris
04/07/2022, 9:05 AMdefinition user {}
definition resource {
relation has: scope
permission access = has->access
}
definition role {
relation is_in: user
permission access = is_in
}
definition scope {
relation has: role
permission access = has->access
}
Dimitris
04/07/2022, 9:05 AMrole:role_a#is_in@user:user_a
role:role_b#is_in@user:user_b
scope:scope_a1#has@role:role_a
scope:scope_b1#has@role:role_b
resource:resource_a#has@scope:scope_a1
Dimitris
04/07/2022, 9:06 AMassertTrue:
- "resource:resource_a#access@user:user_a"
assertFalse:
- "resource:resource_a#access@user:user_b"
williamdclt
04/07/2022, 10:01 AM--datastore-readonly
flag actually do with Postgres? What is it supposed to be used for?Joey
04/07/2022, 11:35 AMJoey
04/07/2022, 11:35 AMJoey
04/07/2022, 11:36 AMwilliamdclt
04/07/2022, 11:36 AMJoey
04/07/2022, 11:36 AMJoey
04/07/2022, 11:36 AMJoey
04/07/2022, 11:36 AMwilliamdclt
04/07/2022, 11:38 AMadampwells
04/07/2022, 10:07 PMReadRelationships
with a relationship filter that is simply the resourceType
and then iterate over all the results to retrieve the distinct set of resources of a given type, but this seems inefficient - ie I will get one result for every 'user' even if I am only looking for the three 'group's that exist. Is there a better way that I am missing?adampwells
04/07/2022, 10:15 PMDimitris
04/08/2022, 8:44 AMchance
04/08/2022, 3:34 PMchance
04/08/2022, 3:34 PMJake
04/08/2022, 3:35 PMchance
04/08/2022, 3:35 PM