Staff were able to edit themselves. This small logic reversal fixes that.
authorChris Sharp <csharp@georgialibraries.org>
Wed, 12 Mar 2014 10:01:27 +0000 (06:01 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Wed, 12 Mar 2014 10:01:27 +0000 (06:01 -0400)
Open-ILS/web/js/ui/default/actor/user/register.js

index aabdc3c..8abcc49 100644 (file)
@@ -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);