Role switching - Post-update check not working as expected #6972
-
I'm trying to implement a role switcher. Assumptions
Logic Implementation of permissions to update users table for each role
Implementation of mutation
Expected result
Actual result
Running Hasura 2.0.0-alpha.10 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This has actually been answered on Discord by @leoalves but I'd like to hold a reference to it here in case somebody else might need it. In short, |
Beta Was this translation helpful? Give feedback.
This has actually been answered on Discord by @leoalves but I'd like to hold a reference to it here in case somebody else might need it. In short,
x-hasura-allowed-roles
is used by Hasura to determine if a token can have use thex-hasura-role
or not. That is not passed into the permissions and so cannot be used.