that won't work, but you could just do
# spicedb
j
that won't work, but you could just do
member_view = enabled
h
Ah, I see! Thank you for the explanation. That makes perfect sense. So, just to confirm, the updated schema would look something like this?
Copy code
definition team {
  relation member: user with login_team_scope
  permission is_member = member
}

definition contents {  
  relation allowed: team#member with login_team_scope
  relation enabled: contents#allowed
  
  permission member_view = enabled
}
And for the tuples, we just write
contents:1#allowed @ team:A#member
and
contents:1#enabled @ contents:1#allowed
, correct? I really appreciate you pointing out this "walk" approach. I will test this out right away!
j
yep
h
Thanks! It's getting quite late here, so I'll give this a try tomorrow morning.
j
good luck! let us know if you have any questions
10 Views