0

user role permissions are not working. i am setting x-hasura-role to user but can't query a table where selection permission is allowed without any checks. also it is not possible to query from react apollo which was working before.

hasura_session_variables

enter image description here

please see the permissions at the picture below :

hasura_table_permissions

enter image description here

what is the possible misconfiguration here?

Narayan
  • 1,670
  • 1
  • 19
  • 37
  • Can you click on `select` for user role and post all the permissions rules there? – tselvan Feb 06 '20 at 11:18
  • all columns are selected if you are asking that. id, title and content. – user12486696 Feb 06 '20 at 11:50
  • Can you enable the header `x-hasura-admin-secret` in API Explorer? Since you have admin secret enabled, you can only make queries with arbitrary roles if you set the admin secret. – tselvan Feb 06 '20 at 13:33
  • ah, ok, i got what you mean. i thought if admin checked the role is set to admin. now it works. thank you – user12486696 Feb 07 '20 at 10:53

0 Answers0