mirror of
https://github.com/redmine/redmine.git
synced 2026-03-04 11:31:31 +01: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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user