User Roles
We'll extend our application from the default user role to multiple roles.
We'll cover the following
URL based authorization
We have used the single role USER
so far, but most applications have multiple roles for their users. This allows only certain operations (like deleting e a user) for certain roles (like administrators).
As an example of how this works, we will create a second hardcoded user admin
which has the USER
and ADMIN
roles:
Get hands-on with 1400+ tech skills courses.