Hey all, Is there a way to determine if a relatio...
# spicedb
l
Hey all, Is there a way to determine if a relationship is actually present?
Copy code
definition user {
}

definition folder {
  relation owner: user
  permission edit = owner
}

definition document {
    relation parent: folder
    permission edit = parent->edit
}
If I check to see if a user can edit a document, can I determine if the relationship between document and folder exists as part of a check permission call?
3 Views