Base solution for your next web application
Open Closed

We need to sort permission on administration by they way we inserted, not by name #6868


User avatar
0
samara081 created

When we create permission on AppAuthorizationProvider, we need to sort the permission on edit permission page by same order that we entered, not by name. for example when we enter SystemTasks permission then PerformanceManagement permission, edit role page show it as PerformanceManagement then SystemTasks. Can we change the behavior?


2 Answer(s)
  • User Avatar
    0
    aaron created
    Support Team
    • What is your product version?
    • What is your product type?
      • ASP<span></span>.NET Core + Angular
      • ASP<span></span>.NET Core MVC + jQuery
      • ASP<span></span>.NET MVC 5.x + AngularJS 1.x
      • ASP<span></span>.NET MVC 5.x + jQuery
    • What is your product framework type?
      • .NET Framework
      • .NET Core
  • User Avatar
    1
    aaron created
    Support Team

    Order by Id for GetUserPermissionsForEdit in UserAppService.

    - Permissions = ObjectMapper.Map<List<FlatPermissionDto>>(permissions).OrderBy(p => p.DisplayName).ToList(),
    + Permissions = ObjectMapper.Map<List<FlatPermissionDto>>(permissions).OrderBy(p => p.Id).ToList(),