Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission variable not showing up in dashboard permission dropdown select #2387

Open
dbarrosop opened this issue Nov 27, 2023 Discussed in #2386 · 3 comments
Open

Permission variable not showing up in dashboard permission dropdown select #2387

dbarrosop opened this issue Nov 27, 2023 Discussed in #2386 · 3 comments
Assignees

Comments

@dbarrosop
Copy link
Contributor

Discussed in #2386

Originally posted by felixhagspiel November 26, 2023
hey all,
I am currently trying to setup a permissions variable for my profile table as mentioned here: https://docs.nhost.io/graphql/permissions#permission-variables

Here is what I have:

  1. I got a profile table that has a column userId, which has a relation to auth.user.id
  2. I have added a new permission variable X-Hasura-profile-id
  3. I pushed everything, ran nhost config pull and nhost up in my local environment

I checked my users JWT token and it has x-hasura-profile-id included in the claims with the correct profile ID. However, I cannot select this in the dropdown when I am trying to setup a new rule, it just does not show up:
Bildschirmfoto 2023-11-26 um 23 27 29

Am I missing something? When I copy & paste X-Hasura-profile-id it just gets overwritten with X-Hasura-user-id

@felixhagspiel
Copy link

another issue that might be related to this: I have changed data in hasura in an unrelated table and it created the following update to my public_friend_view.yaml file, even though nothing has changed:
image

@dbarrosop
Copy link
Contributor Author

Yeah, this looks related. Thanks!

Copy link

stale bot commented Jun 1, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jun 1, 2024
@dbarrosop dbarrosop removed the stale label Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants