diff --git a/app/models/user.rb b/app/models/user.rb index 1498fd0..6bc0b55 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -42,6 +42,9 @@ #attr_accessible :password_confirmation, :encrypted_password, :remember_me, :id, :email, :firstname, :last_login,:login_count, :orcid_id, :password, :shibboleth_id, :user_status_id, :surname, :user_type_id, :organisation_id, :skip_invitation, :other_organisation, :accept_terms, :role_ids, :dmponline3 + # Added to allow the profile update form to update the fields displayed to the user + attr_accessible :email, :firstname, :surname, :orcid_id, :organisation_id, :other_organisation + # FIXME: The duplication in the block is to set defaults. It might be better if # they could be set in Settings::PlanList itself, if possible. has_settings :plan_list, class_name: 'Settings::PlanList' do |s|