Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort permission by Descriptions instead on a name in Roles UI #12408

Closed
MikeAlhayek opened this issue Sep 13, 2022 · 0 comments · Fixed by #12409
Closed

Sort permission by Descriptions instead on a name in Roles UI #12408

MikeAlhayek opened this issue Sep 13, 2022 · 0 comments · Fixed by #12409

Comments

@MikeAlhayek
Copy link
Member

MikeAlhayek commented Sep 13, 2022

Is your feature request related to a problem? Please describe.

Currently, we sort permission by Name which it isn't something visible to the users. When the description is different than, permissions won't show up in alphabetical order because we sort by name by show description

Describe the solution you'd like

To sort them properly, they should be sorted by Description property instead since that is what the users see or care about.

The following screenshot is an example of how sorting by Name does not work well. As you can see the permission "Assign users...." permission is showing up after the "Manage....". The reason in this case the permissions are not showing up as expected is because the permission "Assign any role" has a name of AssignRole. However, Assign users to .... has a name of ManageUsersInRole....
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant