[open-ils-commits] r9729 - branches/rel_1_2_2/Open-ILS/xul/staff_client/server/main

svn at svn.open-ils.org svn at svn.open-ils.org
Thu May 29 11:19:37 EDT 2008


Author: phasefx
Date: 2008-05-29 11:19:35 -0400 (Thu, 29 May 2008)
New Revision: 9729

Modified:
   branches/rel_1_2_2/Open-ILS/xul/staff_client/server/main/ws_info.xul
Log:
just in case JSON returns that value as a string instead of a number

Modified: branches/rel_1_2_2/Open-ILS/xul/staff_client/server/main/ws_info.xul
===================================================================
--- branches/rel_1_2_2/Open-ILS/xul/staff_client/server/main/ws_info.xul	2008-05-29 15:18:05 UTC (rev 9728)
+++ branches/rel_1_2_2/Open-ILS/xul/staff_client/server/main/ws_info.xul	2008-05-29 15:19:35 UTC (rev 9729)
@@ -78,7 +78,7 @@
 				'PERM_RETRIEVE_HIGHEST_ORG',
 				[ xulG.auth.session.key, g.user.id(), 'REGISTER_WORKSTATION']
 			);
-			if (highest_org_id == -1) {
+			if (highest_org_id == -1 || highest_org_id == '-1') {
 				alert('You do not have permission to register a workstation.');
 				xulG.auth.logoff();
 				return;



More information about the open-ils-commits mailing list