summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/roles_controller.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/roles_controller.rb b/app/controllers/roles_controller.rb
index b74404470..cfdc133bf 100644
--- a/app/controllers/roles_controller.rb
+++ b/app/controllers/roles_controller.rb
@@ -30,7 +30,7 @@ class RolesController < ApplicationController
def new
# Prefills the form with 'Non member' role permissions
@role = Role.new(params[:role] || {:permissions => Role.non_member.permissions})
- @roles = Role.all
+ @roles = Role.sorted.all
end
def create
@@ -43,7 +43,7 @@ class RolesController < ApplicationController
flash[:notice] = l(:notice_successful_create)
redirect_to :action => 'index'
else
- @roles = Role.all
+ @roles = Role.sorted.all
render :action => 'new'
end
end
@@ -70,7 +70,7 @@ class RolesController < ApplicationController
end
def permissions
- @roles = Role.find(:all, :order => 'builtin, position')
+ @roles = Role.sorted.all
@permissions = Redmine::AccessControl.permissions.select { |p| !p.public? }
if request.post?
@roles.each do |role|