Open umairwaheed opened 2 years ago
Doesn't work:
Overall looks better. There is a small bug. In the screenshot below I am logged in as super admin (super@erp.com). I try to delete the owner and when I get to the delete confirmation page, the top bar changes.
How it should be:
Background
The application access is determined by OrganizationModule and UserModuleRole.
OrganizationModule
determines which modules are accessible to the organization andUserModuleRole
determines which modules of the organization are accessible to the user. Take a look at PrivateViewMixin to see how we are restricting access.Implementation Sketch
Add a new context processor which adds information of the accessible modules. Use this information in https://github.com/prixite/saas-erp/blob/master/app/templates/app/html/base.html#L22 to show/hide menu items.