From 4d8606c856a9222b4f5fd838ec7c044e9351379b Mon Sep 17 00:00:00 2001 From: Chris Sharp Date: Tue, 21 Apr 2015 17:10:49 -0400 Subject: [PATCH] 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 --- Open-ILS/web/js/ui/default/actor/user/register.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 d260bb3463..d059990a81 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); -- 2.11.0