From: Thomas Berezansky Date: Tue, 1 Nov 2011 14:01:43 +0000 (-0400) Subject: Check Profile Editing Perms for Card Editor X-Git-Tag: sprint4-merge-nov22~4775 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=76a9ebb18fb60bc6b1f041f11009f9dab947058c;p=working%2FEvergreen.git 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 Signed-off-by: Jason Etheridge --- 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 42bf1774db..a29920a87a 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) {