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)
-
0
- 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
-
1
Order by
Id
forGetUserPermissionsForEdit
inUserAppService
.- Permissions = ObjectMapper.Map<List<FlatPermissionDto>>(permissions).OrderBy(p => p.DisplayName).ToList(), + Permissions = ObjectMapper.Map<List<FlatPermissionDto>>(permissions).OrderBy(p => p.Id).ToList(),