summaryrefslogtreecommitdiffstats
path: root/app/models/user.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-09-12 11:11:40 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-09-12 11:11:40 +0000
commit141c83bdc7e4a90ddf1cae6abe2e2e7690401964 (patch)
treeea8c8bec995532b54f58effad1f181cf5011c138 /app/models/user.rb
parentf1ed7dc52382513247dfdf071ca420facadad01f (diff)
downloadredmine-141c83bdc7e4a90ddf1cae6abe2e2e7690401964.tar.gz
redmine-141c83bdc7e4a90ddf1cae6abe2e2e7690401964.zip
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
Diffstat (limited to 'app/models/user.rb')
-rw-r--r--app/models/user.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index b36447cad..b6aafdc0e 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -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',