Role Management

The Role Management section is a section only for the admin.


View, Add, Edit or Delete Role

Here the admin can view, add, edit or delete roles. The + Add role button gets the user to the page for creating a new role, while the Actions column had the delete and edit buttons. A role that is assigned to a user can't be deleted.

It is important to know the permissions of the 3 default roles of the application:

  • the admin has all permissions (can view, add, edit or delete anything)
  • the creator has limited access to category, tags and items section where he can also add, edit or delete
  • the member has no permissions to the CRUDS

For managing the permissions CASL pacakge was used.

In the /src/App.js the permissions are taken and the abilities of the user are set according to the role: