From: Chris Sharp Date: Tue, 21 Apr 2015 21:10:49 +0000 (-0400) Subject: LP#1446860 Staff were able to edit their own accounts. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=580d1e4fdcbc0f8a082125a8bccdf8e63e1fddce;p=evergreen%2Fpines.git LP#1446860 Staff were able to edit their own accounts. This change reverses what appears to be a thinko in the original programming. If the editing user is the same as the user being edited, disable the Save button. Signed-off-by: Chris Sharp Conflicts: Open-ILS/web/js/ui/default/actor/user/register.js --- diff --git a/Open-ILS/web/js/ui/default/actor/user/register.js b/Open-ILS/web/js/ui/default/actor/user/register.js index 210e24ec8a..9f58afc542 100644 --- a/Open-ILS/web/js/ui/default/actor/user/register.js +++ b/Open-ILS/web/js/ui/default/actor/user/register.js @@ -302,7 +302,7 @@ function load() { dojo.connect(setExpireDate, 'onClick', setExpireDateHandler); - if(!patron.isnew() && !checkGrpAppPerm(patron.profile()) || patron.id() == openils.User.user.id()) { + if(!patron.isnew() && !checkGrpAppPerm(patron.profile()) && patron.id() == openils.User.user.id()) { // we are not allowed to edit this user, so disable the save option saveButton.attr('disabled', true); saveCloneButton.attr('disabled', true);