Base solution for your next web application
Open Closed

It is possible Role Management page to display differrent menu to set permission #9878


User avatar
0
kwanp created

How can i set Role Management page to display differrent menu on different group of user to set permission

I have some requirement the manager on the group have to control their own permission up to the functions on their own, right now on the page show all functions of the application

Thank you


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

    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 of PermissionManager 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();

  • User Avatar
    0
    kwanp created

    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

  • User Avatar
    0
    ismcagdas created
    Support Team

    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,