From 141c83bdc7e4a90ddf1cae6abe2e2e7690401964 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 12 Sep 2015 11:11:40 +0000 Subject: 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 --- app/models/user.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'app/models/user.rb') 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', -- cgit v1.2.3