Can anyone explain the difference between LookupPe...
# spicedb
f
Can anyone explain the difference between LookupPermissionship's
has permission
and
conditional permission
? In my understanding, conditional permission requires additional permission check with context for caveat, is that correct? When it's possible to receive
unspecified
permissionship?
v
- conditional permission happens when you've defined caveats in your schema, and there was missing context for SpiceDB to determine an authorization decision. You'll get as part of the response the missing variables. - unspecified should never happen - it's a convention of protobuf enumerations to always have 0 be "unspecified". If it happens, its a bug in the code.
f
Thank you! About unspecified - it's my first time working with gRPC API, didn't know about that, interesting
v
Heh I also didn't know it back in the day 😄