Removed default order by priority on roles (#1720)

This commit is contained in:
Ahmad Farhat
2020-06-02 11:12:33 -04:00
committed by GitHub
parent 4da03957a9
commit 7e27feb70b
3 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@ module UsersHelper
# Returns a list of roles that the user can have
def role_options
Role.editable_roles(@user_domain).where("priority >= ?", current_user.role.priority)
Role.editable_roles(@user_domain).where("priority >= ?", current_user.role.priority).by_priority
end
# Parses markdown for rendering.