Starts in:
3 DAYS
7 HRS
19 MIN
50 SEC
Starts in:
3 D
7 H
19 M
50 S
Open Closed

Angular Authorization #8297


User avatar
0
nabass created

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)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    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.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06