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)
-
0
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
-
0
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
-
0
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