Update the behavior of the auto_admin_user configuration field a bit to
authorWard Vandewege <ward@curoverse.com>
Thu, 6 Nov 2014 15:23:11 +0000 (10:23 -0500)
committerWard Vandewege <ward@curoverse.com>
Thu, 6 Nov 2014 15:23:11 +0000 (10:23 -0500)
commitd20968afa56dd3723d9833685e232a3081053e69
tree9752d17f1370ddc438b7f3021dced753f83cf373
parent611a3323ea110671c5fa021e14f93b24e4a6d7b7
Update the behavior of the auto_admin_user configuration field a bit to
make it more intuitive: the first user created with an e-mail address
that matches auto_admin_user will now become admin, regardless of the
presence of other admin users. Any subsequent accounts created with that
e-mail address will no longer become admin.

refs #4383
services/api/app/models/user.rb