Support #11301
closedMake side menu and roles of a company dynamic from the company onboarding properties
Description
Super Admin → Modules → Screens → Role Templates → Plan → Company → Users → Access
1. Create modules
Super Admin configures POS, Landscaping, Expenses, Ecommerce and their dependencies.
2. Register screens
Each page belongs to a module, with its routes, menu details and enabled status.
3. Configure role templates
Select the screens and permissions available to Admin, Manager, Cashier and other roles.
4. Configure the company plan
During onboarding, the selected plan determines which modules the company can use.
5. Make roles available to the company
Default roles follow Super Admin templates. New templates become available dynamically. Companies can also create custom roles.
6. Assign roles to users
The company assigns one or more roles to each user.
7. Resolve access after login
The backend checks the current user, active role, company status, plan, modules and screen permissions.
8. Display the permitted menu and screens
The frontend shows allowed pages. Backend authorization checks protect their APIs.
9. Refresh after changes
Plan or permission changes refresh access automatically. Duplicate access requests are shared, recent results are reused, and Redis caches the catalog.
10. Check before deleting a role
Show the affected company names and assigned users. Block deletion while users remain assigned. Reassign them, then delete the role.
Subtasks
Related issues