https://authzed.com logo
Can anyone explain the difference
f

fix

03/22/2023, 6:18 AM
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

vroldanbet

03/22/2023, 9:24 AM
- 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

fix

03/22/2023, 11:13 AM
Thank you! About unspecified - it's my first time working with gRPC API, didn't know about that, interesting
v

vroldanbet

03/22/2023, 11:14 AM
Heh I also didn't know it back in the day 😄