From: Chris Sharp Date: Wed, 12 Mar 2014 10:01:27 +0000 (-0400) Subject: Staff were able to edit themselves. This small logic reversal fixes that. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=1845adbffdbf201572161a5f7694b5d98e0338df;p=evergreen%2Fpines.git Staff were able to edit themselves. This small logic reversal fixes that. --- 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 aabdc3c203..8abcc49cbd 100644 --- a/Open-ILS/web/js/ui/default/actor/user/register.js +++ b/Open-ILS/web/js/ui/default/actor/user/register.js @@ -293,7 +293,7 @@ function load() { dojo.connect(generatePassword, 'onClick', generatePasswordHandler); - 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);