Check Profile Editing Perms for Card Editor
authorThomas Berezansky <tsbere@mvlc.org>
Tue, 1 Nov 2011 14:01:43 +0000 (10:01 -0400)
committerJason Etheridge <jason@esilibrary.com>
Thu, 1 Dec 2011 20:59:21 +0000 (15:59 -0500)
Don't allow Active/Primary card changes unless you have the ability to edit
the patron's primary profile group.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Open-ILS/web/js/ui/default/actor/user/register.js

index 42bf177..a29920a 100644 (file)
@@ -240,7 +240,7 @@ function load() {
     dojo.connect(allCards, 'onClick', drawAllCards);
     if(patron.isnew()) {
         dojo.addClass(dojo.byId('uedit-all-barcodes'), 'hidden');
-    } else {
+    } else if(checkGrpAppPerm(patron.profile())) {
         new openils.User().getPermOrgList(
             'UPDATE_PATRON_ACTIVE_CARD',
             function(orgList) {