projecthydra/curate — pull request #444 by hortongn (2014-03-17 05:44:32+00:00)
Title: Repository managers can edit users and profiles

Override the update method in
app/controllers/registrations_controller.rb so
managers can save profile changes without
entering a password.

Create app/controllers/users_controller.rb to
allow Devise to edit other users' profiles.

Add update_without_password and
update_user_without_user methods to
app/models/account.rb to allow proper updating
of user accounts.

Remove code from app/models/concerns/curate/ability.rb
that blocks person and profile update/edit/destroy
abilities from managers.

Tweak the manager_usernames method in
app/models/curate/user_behavior/base.rb so the
app does not crash if the yaml file is missing.

Edit several views to display proper buttons
and labels depeding on if they are a manager or not.
- app/views/curate/people/show.html.erb
- app/views/registrations/_form_account_deactivation.html.erb
- app/views/registrations/_form_attributes.html.erb
- app/views/registrations/_form_password_management.html.erb
- app/views/registrations/edit.html.erb

Add new /users/:id/edit route to
lib/curate/rails/routes.rb to allow managers to
edit another user's profile page.

Edit existing spec tests to adjust for changes
to buttons and other labels
- spec/features/person_profile_spec.rb
- spec/features/user_profile_workflow_spec.rb

HYDRASIR-302 #close
HYDRASIR-303 #close
HYDRASIR-313 #close
HYDRASIR-314 #close