10/28/2021, 1:26 PM
hi 👋 When using a schema such as:
definition example/team {
    relation member: user

definition example/user {}

definition example/document {
    relation member: user | team#member

    permission edit = member
If I want expand the permissions for a given document, if the permission is given through a team membership, it doesn't expand up to the user level. I tried changing the relation to:
relation member: user | team
, excluding the
part. But then the check doesn't work 🤔 What would be the correct way to define that a document member can be either a user or a team member, so that then the expand also expands team membership?