-
Beta Was this translation helpful? Give feedback.
Answered by
jon-whit
Dec 4, 2023
Replies: 1 comment
-
https://play.fga.dev/stores/create/?id=01HGV3YREXM5KDMJYD72K5FMD3 NOTE: OpenFGA models relationships as a directed graph. So if you want parent and child relationships you have to create these individually. We don't have bidirectional edges in OpenFGA. Everything is directed. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ofeksher
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Check(document:1#editor@user:jon)
returns{allowed: true}
becauseuser:jon
is a member ofrole:1
androle:1
is a child ofrole:2
androle:2
has editor ondocument:exp
. Here's a sample Playground link that demonstrates this.https://play.fga.dev/stores/create/?id=01HGV3YREXM5KDMJYD72K5FMD3
NOTE: OpenFGA models relationships as a directed graph. So if you want parent and child relationships you have to create these indivi…