Open Closed

Error Handling IPermissionManager #7152


User avatar
0
nabass created

hi sir, according to this documentation https://docs.abp.io/en/abp/latest/Authorization part of ( IPermissionManager ) i tried to use it but i cant reach the method {SetForUserAsync} is there an update documentation to use it ??? here is some image of my code

  • ABP Framework version: v8
  • UI Type: MVC
  • Database System: EF Core (SQL Server)

3 Answer(s)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Member

    Hello,

    please check out https://github.com/abpframework/abp/blob/5d40bd57b7e3c3525b6e04f56549ec13e73e53ce/modules/identity/src/Volo.Abp.PermissionManagement.Domain.Identity/Volo/Abp/PermissionManagement/UserPermissionManagerExtensions.cs#L18

    thanks

  • User Avatar
    0
    nabass created

    is abp provide a way to do this logic: if i have some of pages for example (JournalVoucher / FiscalYear / lines / Money / Accounting) and if i want to insert new record within JournalVoucher so i must first to insert records within rest of pages as JournalVoucher depends on them and all these pages into on createModel (thanks to <abp-tap> ) so my logic is to set for user number01 a permission for JournalVoucher and if he open createModel to insert new record is there a way to give him a permission for rest of pages (FiscalYear / lines / Money / Accounting) automatically

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Member

    Hello,

    please check out for example https://docs.abp.io/en/commercial/latest/tutorials/book-store/part-5?UI=NG&DB=EF#permissions Likewise you can define permissions for each page/entity in your system and you can customize your logic as per your requirement

    thanks

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 18, 2025, 10:42