Did Abp support dynamic menu based on user role?
Scenarios,
-
Senior manager can see "Commission Configuration" and edit the commission in the related Angular app/component.
-
manager can see "Commission Configuration" menu, view the commission only a Angular app/component can be accessed.
-
operator cannot see "Commission Configuration" menu and the related Angular app deny to accessed.
-
ABP Framework version: v6.0.2 micro-service template
-
UI type: Angular
-
DB provider: EF Core
-
Tiered (MVC) or Identity Server Separated (Angular): yes
1 Answer(s)
-
0
Hello,
You can assign permission to requiredPolicy property of the related component's route menu configuration. You can read the document about RoutesService for more information.
routes.add([ { // other route properties requiredPolicy: 'ReadPermission', }, ]);
You can use Permission Directive to manage the visibility of a DOM Element (Create Button)