-
I need to model an auth-model requirement where the authorization policy depends on the status of a resource. My requirement is similar to the one discussed here. In my case, whether a user has How could I model such an attribute check? I tried the solution discussed in the previous thread as follows but it does not seem to work unless I misunderstood the solution. Here is a sample that shows what I have tried.
As you would see, I added the following relation
and included the following contextual tuple in the query. But, the query returned Allowed=false. (See https://play.fga.dev/stores/create/?id=01JEQDW5BJKBX7260M96T43S20)
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I found the mistake in my auth model. The can_delete permission should be defined as
instead of
|
Beta Was this translation helpful? Give feedback.
I found the mistake in my auth model. The can_delete permission should be defined as
instead of