Web app authorization acc to role assigned

Basically after the user logs in there is a crud app with edit, delete, view and add record buttons. i want to make it such that the edit, delete and add buttons are only enabled if the user logging in has an admin role. if the user has an employee role i want to disable the edit, delete and add buttons.

The auth0 authentication is working without any issues but this authorization that i want to perform is not possible.

I’ve tried various methods as well as gone through the auth0 rbac docs but i cannot find a solution for this

1 Like