Is there a way to allow any permission when creati...
# spicedb
t
Is there a way to allow any permission when creating a new relationship. I want to let the user decide how permissions should be propogated to users of resource.
Copy code
definition foo {
    relation foogroup_a: user
    relation foogroup_b: user
    relation foogroup_c: user
}

definition bar {
    relation group_a: user | foo
    relation group_b: user | foo
    relation group_c: user | foo
    permission perm_a = group_a
        permission perm_b = group_b
        permission perm_c = group_c
}
I want to this in my application:
Copy code
zed relationship create bar:1 group_a foo:1#foogroup_b
or
Copy code
zed relationship create bar:2 group_b foo:2#foogroup_a
and expect the following check to work:
Copy code
> zed relationship create foo:2 foogroup_b user:me
> zed permission check bar:2 group_b user:me
True