From 141c83bdc7e4a90ddf1cae6abe2e2e7690401964 2015-09-12 11:11:40 From: Jean-Philippe Lang Date: 2015-09-12 11:11:40 Subject: [PATCH] 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 --- diff --git a/app/models/user.rb b/app/models/user.rb index b36447c..b6aafdc 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',