Revert "Permission to control patron-collections-exempt"
authorBill Erickson <berick@esilibrary.com>
Tue, 20 Dec 2011 15:48:42 +0000 (10:48 -0500)
committerBill Erickson <berick@esilibrary.com>
Tue, 20 Dec 2011 15:48:42 +0000 (10:48 -0500)
This reverts commit 6719fcef8faceab7a355a9f405eb31d6cbda9190.

Conflicts:

Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/web/js/ui/default/actor/user/register.js

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/web/js/ui/default/actor/user/register.js

index 3baf2ab..a5cc366 100644 (file)
@@ -1913,7 +1913,6 @@ INSERT INTO permission.grp_perm_map (grp, perm, depth, grantable)
                        'UPDATE_HOLD_REQUEST_TIME',
                        'UPDATE_NET_ACCESS_LEVEL',
                        'VIEW_CIRC_MATRIX_MATCHPOINT',
-            'UPDATE_PATRON_COLLECTIONS_EXEMPT',
                        'VIEW_HOLD_MATRIX_MATCHPOINT');
 
 INSERT INTO permission.grp_perm_map (grp, perm, depth, grantable)
index f74b110..b75985c 100644 (file)
@@ -595,10 +595,6 @@ function uEditDrawSettingRow(tbody, dividerRow, template, stype) {
     dojo.connect(cb, 'onChange', function(newVal) { userSettingsToUpdate[stype.name()] = newVal; });
     tbody.insertBefore(row, dividerRow.nextSibling);
     openils.Util.show(row, 'table-row');
-
-    if(stype.name() == 'circ.collections.exempt') {
-        checkCollectionsExemptPerm(cb);
-    }
 }
 
 function uEditUpdateUserSettings(userId) {
@@ -905,21 +901,6 @@ function checkClaimsNoCheckoutCountPerm() {
     );
 }
 
-var collectExemptCBox;
-function checkCollectionsExemptPerm(cbox) {
-    if(cbox) collectExemptCBox = cbox;
-    new openils.User().getPermOrgList(
-        'UPDATE_PATRON_COLLECTIONS_EXEMPT',
-        function(orgList) { 
-            if(orgList.indexOf(patron.home_ou()) == -1) 
-                collectExemptCBox.attr('disabled', true);
-            else
-                collectExemptCBox.attr('disabled', false);
-        },
-        true, 
-        true
-    );
-}
 
 function usePhonePw(newVal) {
     if(newVal && newVal.length >= 4) {
@@ -1118,7 +1099,6 @@ function attachWidgetEvents(fmcls, fmfield, widget) {
                     function(newVal) { 
                         checkClaimsReturnCountPerm(); 
                         checkClaimsNoCheckoutCountPerm();
-                        checkCollectionsExemptPerm();
                     }
                 );
                 return;