Join Discord
Powered by
Also opens up for a nice pattern I generally end u...
# spicedb
s
swantzter
05/24/2023, 7:38 AM
Also opens up for a nice pattern I generally end up using, wrapping the "check" function to an "assert" function thay throws if the permission is denied. Works well with your pattern
p.Document('id').view.assert(p.User('someuser'))
Previous
Next