adding copy location checks to default item permit scripts
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 4 Nov 2007 00:03:40 +0000 (00:03 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 4 Nov 2007 00:03:40 +0000 (00:03 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@7980 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/src/javascript/backend/circ/circ_permit_copy.js
Open-ILS/src/javascript/backend/circ/circ_permit_copy.js

index edb48ac..5475198 100644 (file)
@@ -5,7 +5,7 @@ load_lib('circ/circ_lib.js');
 log_vars('circ_permit_copy');
 
 
-if( ! isTrue(copy.circulate) ) 
+if( ! isTrue(copy.circulate) || !isTrue(copy.location.circulate) 
        result.events.push('COPY_CIRC_NOT_ALLOWED');
 
 
index 6043e5f..053d9b7 100644 (file)
@@ -6,7 +6,7 @@ load_lib('JSON_v1.js');
 log_vars('circ_permit_copy');
 
 
-if( ! isTrue(copy.circulate) ) 
+if( ! isTrue(copy.circulate) || !isTrue(copy.location.circulate) 
        result.events.push('COPY_CIRC_NOT_ALLOWED');