-
Notifications
You must be signed in to change notification settings - Fork 450
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
User Roles does not appear to work locally #2472
Comments
discord "help" for reference: https://discord.com/channels/552499021260914688/1196488618886316174 |
The auth->user_roles table is empty, and locked so I cannot alter user roles. How then do I populate it? |
🤦 that's a different bug, as a workaround of the workaround you can use the SQL editor: You could also use graphql mutations if you want:
|
@dbarrosop what is the workflow for adding new roles until this is fixed?
Is this the correct way? |
You shouldn't create roles in the database directly. For adding new roles you need to add them to settings, either the
or in the dashboard->settings->Roles and permissions. |
Can`t believe I have missed that, thanks |
@dbarrosop If I do that, then users that sign up get the |
Yes, that is correct. Apologies for the confusion. I thought you wanted a new default alowed role. If you just want the role for some users the procedure you described is correct. |
When running nhost locally via the CLI, user roles doesn't seem to populate.
However, the same installation online:
And the local nhost.toml contains:
And the local auth->roles contains:
The console has no errors in it, and it is sync'd with nhost.io.
The text was updated successfully, but these errors were encountered: