Category Management
The Category Management section is a section only for the admin and creator users.
View, Add, Edit or Delete Category
Categories can be viewed and edited by an admin or a creator. Using the API table role_has_permissions
to get the role rights of access and CASL rules the restrictions were added.
For managing the permissions CASL pacakge was used.
In the /src/cruds/category-management
is the logic for creating and giving permissions: