Hi, i'm trying to design a schema for our use case...
# spicedb
j
Hi, i'm trying to design a schema for our use case. It seem like our requirements don't fit or I have not found a way to do it yet 🙂 may be someone could help me, please? Example: Let's say we have a directory with files. I would like to define a permission for the directory, which depends on the permission of all files in the directory. For example "can_delete" permission on a directory should only be granted if a user has "can_delete" permission for all files in that directory. Is something like that possible? I tried to model the permission on directory as "walk" through of permission on file level (i.e. "permission can_delete = content->can_delete" where content ist the relation between file and directory). But this does not work. It gives me the "can_delete" permission as soon as there is at least one file where i have the "can_delete" permission. It seems like it does not check all files permissions. Thank you!
3 Views