1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-20 15:31:12 +00:00

remove spaces inside {} of RolesController

git-svn-id: http://svn.redmine.org/redmine/trunk@20434 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2020-11-19 13:30:39 +00:00
parent ef986de572
commit 6ed20316b0

View File

@ -83,12 +83,12 @@ class RolesController < ApplicationController
flash[:notice] = l(:notice_successful_update) flash[:notice] = l(:notice_successful_update)
redirect_to roles_path(:page => params[:page]) redirect_to roles_path(:page => params[:page])
end end
format.js { head 200 } format.js {head 200}
end end
else else
respond_to do |format| respond_to do |format|
format.html { render :action => 'edit' } format.html {render :action => 'edit'}
format.js { head 422 } format.js {head 422}
end end
end end
end end
@ -108,7 +108,7 @@ class RolesController < ApplicationController
scope = scope.where(:id => params[:ids]) scope = scope.where(:id => params[:ids])
end end
@roles = scope.to_a @roles = scope.to_a
@permissions = Redmine::AccessControl.permissions.select { |p| !p.public? } @permissions = Redmine::AccessControl.permissions.select {|p| !p.public?}
end end
def update_permissions def update_permissions