hi i wish i can explain i want to make logic that allows me open page or not according to Authorization i attached some images to explain what i want what i want is: if i have 2 users (x ,y) x has permission for specific pages so i must give him requiredPolicy within route.provider.ts file and not open the page if he hasn't permission put in my case what happen is just router link appear or not according to permission and page still open even if (x) hasn't permission
both if has permission or not will open this page and i don't want this just open it if has permission
- ABP Framework version: v8.0.2
- UI Type: Angular
- Database System: EF Core (SQL Server)
1 Answer(s)
-
0
Hi,
Please check Permission Management Document for customization, all logics run here for prevent to navigate page and show/hide menu item customize this service
PermissionGuard You need to replace this not AuthGuard it just check current user have token or not , here is the document
Thank you.