Joey
01/25/2022, 10:03 PMview
resource, edit
resource), but you could also have specialized ones like can_comment
, which could/would be a combination of various rolesJoey
01/25/2022, 10:04 PMdefinition user {}
definition resource {
relation reader: user
relation writer: user
relation commenter: user
permission view = reader + writer + commenter
permission edit = writer
permission can_comment = writer + commenter
}
Joey
01/25/2022, 10:05 PMpermission
) or representing a concrete relationship (relation
)Joey
01/25/2022, 10:08 PMcd
01/25/2022, 10:09 PMdefinition sub_resource {
relation resource: resource
relation writer: user
permission edit = writer + resource->writer // or writer + resource->edit
}
you could say either resource writers can edit sub resources, or those with permission to edit resource can also edit sub resources.... both are correct, right? is there a practical effect on the back end of using one or the other (i.e. an extra traversal walking back a computed permission vs. a relation)? or is that so small that it's negligible?cd
01/25/2022, 10:10 PMJoey
01/25/2022, 10:10 PMJoey
01/25/2022, 10:10 PMJoey
01/25/2022, 10:10 PMcd
01/25/2022, 10:10 PMJoey
01/25/2022, 10:11 PMcheck
call, or on the right hand side of an arrow) be a permissionJoey
01/25/2022, 10:11 PMJoey
01/25/2022, 10:11 PMJoey
01/25/2022, 10:12 PMcd
01/26/2022, 6:51 PMzed import
expects a YAML file... can you point me to the documentation describing that file?
Also, are zed import
operations idempotent?ecordell
01/26/2022, 7:15 PMcd
01/26/2022, 7:18 PMcd
01/26/2022, 7:35 PMzed import
command to use the prefix designated for the permissions-system at time of creation? The intention behind the question is to use a common schema file that all the devs can import into private development permission-system instances. But whenever I try to do an import, zed says that it finds resources without prefixes.
If I recall correctly, I was able to author a schema in the playground and import it into the permissions system via the "import" button, and the prefix was just somehow automatically added.Joey
01/26/2022, 7:41 PMJoey
01/26/2022, 7:42 PMJoey
01/26/2022, 7:42 PMcd
01/26/2022, 7:50 PMcd
01/26/2022, 7:51 PMJoey
01/26/2022, 7:51 PMJoey
01/26/2022, 7:51 PMcd
01/26/2022, 7:52 PMmparnisari
01/27/2022, 12:35 AMreader
as reader
and NOT blocked
?Jake
01/27/2022, 12:36 AMmparnisari
01/27/2022, 12:42 AMJake
01/27/2022, 12:44 AM