Replies: 2 comments
-
Thanks @damianh, we are considering this change as part of our DSL improvements. |
Beta Was this translation helpful? Give feedback.
0 replies
-
This was implemented as part of this PR openfga/language#107 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
(Originally posted to do discord, posting here as requested).
A use case for supporting multiple different operators in the same relation:
Given this model
and the following tuples:
foo
has a relation ofowner
with applicationbar
. (tuple: "solution:foo", "owner", "application:bar")foo
has a relation ofowner
with applicationbaz
. (tuple: "solution:foo", "owner", "application:baz")alice
has a relation ofapplication-view
to solutionfoo
. (tuple: "alice", "application-viewer", "solution:foo")With this, alice as access to all applications in a solution.
So now I want to explicitly block
alice
fromapplication:baz
:Now the model needs to look like:
However the
but not blocked
above is invalid syntax.A work around was provided by @rhamzeh (thanks for quick response there !!) but would be nicer to have support in the DSL.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions