i'm trying to wrap my head around a model that use...
# spicedb
y
i'm trying to wrap my head around a model that uses a notion of "permission sets" and "roles", where the idea is that you attach a role to a permission set that indicates what a role can do with a particular object, and an object which indicates which thing that role applies to, and then the permission on the object is calculated with the intersection of the role being applied to the object and then the role being attached to a permission set with a specific permission, which would theoretically make the permission sets reusable across a set of roles. this is what i've got so far, but I think i'm missing something important about subject relations: https://play.authzed.com/s/TLKFaZdIAIsr/schema because the graph doesn't look right to me. is there anything obvious that i'm doing correctly or incorrectly?