From: erickson Date: Sat, 29 Jul 2006 21:23:57 +0000 (+0000) Subject: added permission to bar/unbar users disabled checkbox if permission is not there X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6e277e6b975c865cf7541f8bbacf5ab43fa278e4;p=evergreen%2Fpines.git added permission to bar/unbar users disabled checkbox if permission is not there git-svn-id: svn://svn.open-ils.org/ILS/trunk@5168 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/patron/ue.js b/Open-ILS/xul/staff_client/server/patron/ue.js index cf815f03b3..98fb299163 100644 --- a/Open-ILS/xul/staff_client/server/patron/ue.js +++ b/Open-ILS/xul/staff_client/server/patron/ue.js @@ -67,7 +67,7 @@ function uEditFetchNetLevels() { /* fetches necessary and builds the UI */ function uEditBuild() { - //fetchHighestPermOrgs( SESSION, USER.id(), myPerms ); + fetchHighestPermOrgs( SESSION, USER.id(), myPerms ); uEditBuildLibSelector(); patron = fetchFleshedUser(cgi.param('usr')); @@ -94,6 +94,9 @@ function uEditBuild() { unHideMe($('ue_mark_card_lost')); unHideMe($('ue_reset_pw')); } + + if(PERMS['BAR_PATRON'] == -1) + $('ue_barred').disabled = true; } diff --git a/Open-ILS/xul/staff_client/server/patron/ue_config.js b/Open-ILS/xul/staff_client/server/patron/ue_config.js index aab96ed7a7..6cfe559a6f 100644 --- a/Open-ILS/xul/staff_client/server/patron/ue_config.js +++ b/Open-ILS/xul/staff_client/server/patron/ue_config.js @@ -20,7 +20,14 @@ const ADULT_AGE = 18; const GUARDIAN_NOTE = 'SYSTEM: Parent/Guardian'; /* if they don't have these perms, they shouldn't be here */ -var myPerms = [ 'CREATE_USER', 'UPDATE_USER', 'CREATE_PATRON_STAT_CAT_ENTRY_MAP' ]; +var myPerms = [ + /* + 'CREATE_USER', + 'UPDATE_USER', + 'CREATE_PATRON_STAT_CAT_ENTRY_MAP', + */ + 'BAR_PATRON', + ]; var dataFields; const numRegex = /^\d+$/;