Remove user ID check user/bshum/remove-edit-user-check
authorBen Shum <bshum@biblio.org>
Sat, 2 Jun 2012 23:08:48 +0000 (19:08 -0400)
committerBen Shum <bshum@biblio.org>
Thu, 27 Feb 2014 15:13:54 +0000 (10:13 -0500)
commit2f93a05b67b72959953ebc811e555c620380d071
tree67df9155bc78d28ebf15e027e3b446eff1277bc5
parentac3f30740999ea3e1c95e0031697bb7589c6ed83
Remove user ID check

When editing a patron, there are three checks made to disable the save button.
The first two to determine if it's a new user or a user that belongs to a
group you do not have permission to edit sound good. But the third check
assumes that the user making the edits are allowed to edit their own record.

To prevent a use case where the user is part of a group that their group does
not have permission to edit, we should not allow them to save changes to their
own record.  This change removes the user ID check.

Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/web/js/ui/default/actor/user/register.js