https://authzed.com logo
#spicedb
Title
# spicedb
j

Joey

08/29/2022, 7:41 PM
can you share a portion of your schema?
l

Lanny

08/29/2022, 7:51 PM
Copy code
definition poc/document {
    relation org: poc/organization
    relation owner: poc/user
    relation viewer: poc/user | poc/organization
    relation editor: poc/user | poc/organization

    permission view = viewer + editor + org->view
}

definition poc/organization {
    relation parent: poc/organization
    relation member: poc/user


    permission view = member + parent->view
}

definition poc/user {}
j

Joey

08/29/2022, 7:51 PM
okay; and what issue are you encountering?