Replies: 2 comments
-
You should add an access policy to Also, you don't need to explicitly add |
Beta Was this translation helpful? Give feedback.
-
Oh, okay, thank you. I think I tried that too and got the same error, but let me try again.
Right, thank you. I was cleaning up some other access policies not relevant to the reproducible example and just added it for clarity in the post. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm stuck with
required link is hidden by access policyerror and not sure how to properly fix this situation.Here is a minimal example:
Insert some test data (with access policies disabled):
Access policy is intendend to show only "own" participants to the user.
Now, assuming current user is the first one, I expect to see only participants with users' competitor. Instead, it returns an error:
I understand the logic behind the error – .competitor is required, so it should not be empty. But at the same time, I don't care about participants which I don't have access to.
How can I rewrite query of access policy to make it behave this way instead of failing with an error?
Beta Was this translation helpful? Give feedback.
All reactions