Hi!, I have a question about modeling Let's say I...
# spicedb
r
Hi!, I have a question about modeling Let's say I have this schema
Copy code
definition user {}

definition org {
    relation owner: user
    relation member: user
}

definition service {
    relation org: organization:*
    relation instance: instance
    relation granted: role_binding

    permission create = granted->service_create + org->owner
}

definition instance {
}
I know that the wildcard
org->owner
doesn't work, but, how can I permit create permission at
service
if the user is an
owner
of an organization?