3 Answer(s)
-
0
Hi,
Permission list is retrieved here https://github.com/aspnetzero/aspnet-zero-core/blob/dev/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Application/Authorization/Roles/RoleAppService.cs#L63. So, you can override
GetAllPermissions
method ofPermissionManager
and filter roles according to your needs.If this is the only place you want to filter list of permisisons, I suggest you to do it after the line below and filter
permissions
.var permissions = PermissionManager.GetAllPermissions();
-
0
Can i do this on Version 6.5 (ASP.NET Core + Angular) i have try to filter out by Role but still not work can you give more hint to make this work
Thank you
-
0
Hi @kwanp
Yes, it should be possible with 6.5 version as well. Could you share how did you overwrite GetAllPermissions method of PermissionManager ? If you haven't done this, could you share what did you do ?
Thanks,