Permission / query for "unauthorized" role not working for authenticated "user" role #10021
Unanswered
felixhagspiel
asked this question in
Question
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hey all!
I have a table
invites
and a permission variableprofile-id
for authorized users. I want authorized users to be able to select all invites where thecreatorProfileId
matchesprofile-id
from the headers. This is working.In addition, I want unauthorized users AND authorized users be able to select a single invite, if they know the ID, e.g.
invite_by_pk(id: $id)
.This query is not working when the user is authorized. What is the hasura / graphql way of doing this? I thought about adding a dedicated view, but I assume that there is an easier solution.
Beta Was this translation helpful? Give feedback.
All reactions