Bart Simpson
05/27/2024, 2:14 PMBart Simpson
05/27/2024, 2:41 PMBulkCheckPermissions
doesn't fit my use case because the caller needs to know all the possible permissions on the definition in order to use it. My SpiceDB schema might change in the future and I don't feel comfortable hardcoding schema-related stuff on the client side.yetitwo
05/27/2024, 2:41 PMyetitwo
05/27/2024, 2:41 PMyetitwo
05/27/2024, 2:42 PMyetitwo
05/27/2024, 2:43 PMBart Simpson
05/27/2024, 3:26 PMCheckPermission
requests indeed should know the permissions beforehand.
However, my use case is a bit different. Imagine an admin dashboard, I want to display to the administrator not only relations between the user and the document, I want my admin to see what those relations actually mean. E.g. I can tell that user X is a manager in a group Y. But "manager" is a bit vague. Can "manager" delete members from the group? I want to be able to answer such questions.Bart Simpson
05/27/2024, 3:29 PMReadRelationships
. ReadPermissions
rpc shouldn't be very hard to implement, given that SpiceDB already knows the schema.Joey
05/27/2024, 4:30 PMJoey
05/27/2024, 4:30 PMJoey
05/27/2024, 4:31 PMJoey
05/27/2024, 4:32 PMJoey
05/27/2024, 4:37 PMJoey
05/27/2024, 4:37 PMBart Simpson
05/27/2024, 5:39 PM