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:
parent
f1ed7dc523
commit
141c83bdc7
@ -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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user