1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-12 10:31:33 +00:00

WARNING: Can't mass-assign protected attributes for User (#20490).

git-svn-id: http://svn.redmine.org/redmine/trunk@14550 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2015-09-12 11:11:40 +00:00
parent f1ed7dc523
commit 141c83bdc7

View File

@ -656,8 +656,7 @@ class User < Principal
(!admin? || User.active.where("admin = ? AND id <> ?", true, id).exists?)
end
safe_attributes 'login',
'firstname',
safe_attributes 'firstname',
'lastname',
'mail',
'mail_notification',