diff options
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/group.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/models/group.rb b/app/models/group.rb index 994ca49a0..21166f1af 100644 --- a/app/models/group.rb +++ b/app/models/group.rb @@ -39,11 +39,12 @@ class Group < Principal scope :named, lambda {|arg| where("LOWER(#{table_name}.lastname) = LOWER(?)", arg.to_s.strip)} scope :givable, lambda {where(:type => 'Group')} - safe_attributes 'name', + safe_attributes( + 'name', 'user_ids', 'custom_field_values', 'custom_fields', - :if => lambda {|group, user| user.admin? && !group.builtin?} + :if => lambda {|group, user| user.admin? && !group.builtin?}) def to_s name.to_s |