How to define roles and permissions for the application.
PermissionType.APP_SERVER
This category encompasses permissions that govern actions and operations on the server side.
PermissionType.APP_CLIENT
This category includes permissions that dictate what elements and interactions are available on the client side, such as in a web or mobile application.
While these categories form the foundational structure, they are flexible. Should the need arise for instance, if we have a group of users that interact with a dashboard requiring distinct access rights we can extend these categories.
By creating separate types like PermissionType.DASHBOARD_USER, we can ensure tailored access control that is both secure and specific to the roles of different user groups within the application.