universityofcalifornia / NeXt

UC NeXt is a Rails app for fostering IT collaboration amongst the various UC campuses.
https://ucnext.org
Other
11 stars 11 forks source link

Getting email address error when Admin changes Profile Visibility of other accounts #402

Closed ctrance closed 8 years ago

ctrance commented 8 years ago

@joshuaselsky @krozett - When admin (ctrance@ucla.edu) try to change the Profile Visibility of other account (ctrance@oit.ucla.edu), the app throws error "The email you are trying to change to already exists"

krozett commented 8 years ago

This actually had nothing to do with profile visibility. If you tried to edit any other user as a super admin, it would check that user's current email against the logged-in user's email, see they were different, and then try to change it (and fail because that email is taken). But it was an easy fix once I saw what was happening.

ctrance commented 8 years ago

Fixed.