Ouvert Fermé

Error Handling IPermissionManager #7152


User avatar
0
nabass créé

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 Réponse (s)
  • User Avatar
    0
    Anjali_Musmade créé
    Équipe d'assistance 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 créé

    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 créé
    Équipe d'assistance 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

Made with ❤️ on ABP v8.2.0-preview Updated on mars 25, 2024, 15:11