You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the OPL file, the this.permits(ctx) not translating into the proper permissions structure when calling self that calls a transitive relation.
Reproducing the bug
The following example returns different results when calling the check permission api for read relation then the update, delete, create_media_stack, and list_media_stacks. The read relation returns true while all others return false. We have other Namespaces that do NOT exhibit this behavior. They work as expected.
AustinCase
changed the title
OPL parsing bug
OPL permissions have inconsistencies when using this.permits(ctx) vs calling a transitive permits directly
Nov 13, 2024
Preflight checklist
Ory Network Project
No response
Describe the bug
When using the OPL file, the
this.permits(ctx)
not translating into the proper permissions structure when callingself
that calls a transitive relation.Reproducing the bug
The following example returns different results when calling the check permission api for read relation then the update, delete, create_media_stack, and list_media_stacks. The read relation returns true while all others return false. We have other Namespaces that do NOT exhibit this behavior. They work as expected.
When changing the above to the following, everything works as expected:
Relevant log output
No response
Relevant configuration
The entirety of the OPL file ( that is relevant to this issue ) is copied below
Version
0.13.0-alpha.0
On which operating system are you observing this issue?
macOS
In which environment are you deploying?
Other
Additional Context
This is in our devenv nix environment, same behavior with docker. Postgres backend.
The text was updated successfully, but these errors were encountered: