app/models/ibrain/auth/user.rb in ibrain-auth-0.1.8 vs app/models/ibrain/auth/user.rb in ibrain-auth-0.1.9
- old
+ new
@@ -15,10 +15,10 @@
def jwt_payload
# for hasura
hasura_keys = {
'https://hasura.io/jwt/claims': {
- 'x-hasura-allowed-roles': User.roles.keys,
+ 'x-hasura-allowed-roles': Ibrain.user_class.roles.keys,
'x-hasura-default-role': role,
'x-hasura-user-id': id.to_s
}
}