Commit aebcfb1e authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

When creating a new role, permissions are pre-filled with 'Non member' role permissions.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@943 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 457c9a8e
......@@ -33,7 +33,8 @@ class RolesController < ApplicationController
end
def new
@role = Role.new(params[:role])
# Prefills the form with 'Non member' role permissions
@role = Role.new(params[:role] || {:permissions => Role.non_member.permissions})
if request.post? && @role.save
flash[:notice] = l(:notice_successful_create)
redirect_to :action => 'list'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment