From 4d94ef1f86bfb973f78cd93898b6be712df51d34 Mon Sep 17 00:00:00 2001 From: Thomas Berezansky Date: Tue, 1 Nov 2011 10:01:43 -0400 Subject: [PATCH] Check Profile Editing Perms for Card Editor 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 --- 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 849601c465..cfff7fc835 100644 --- a/Open-ILS/web/js/ui/default/actor/user/register.js +++ b/Open-ILS/web/js/ui/default/actor/user/register.js @@ -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) { -- 2.11.0