https://authzed.com logo
Title
r

RNDude

10/29/2021, 7:09 AM
Following up on what you guys discussed, is there any sort of "absolute" recommendation to avoid a rewrite graph which is too long? Say "don't have more than 4 rewrites" for instance. Could (yes, but rather should) I keep invitations to join an organization inside SpiceDB? Or should I keep invitations somewhere else and when it's accepted, add a direct relation
organization:123#member@user:john
?
definition userĀ {}
definition invitation {
  relation acceptor : user;
}
definition organization {
  relation invite : invitation;
}
definition org_role {
  relation invite : organization#invite;
  relation member : user;
 
  permission access = member & invite->acceptor
}
definition resource {
   relation reader: org_role#access;
}