From d1d3d404a319fa84f04d1746e846351f5b6be684 Mon Sep 17 00:00:00 2001 From: phasefx Date: Thu, 29 May 2008 15:19:35 +0000 Subject: [PATCH] just in case JSON returns that value as a string instead of a number git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2_2@9729 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/main/ws_info.xul | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/server/main/ws_info.xul b/Open-ILS/xul/staff_client/server/main/ws_info.xul index 037975b2d1..cbb1f7eaf9 100644 --- a/Open-ILS/xul/staff_client/server/main/ws_info.xul +++ b/Open-ILS/xul/staff_client/server/main/ws_info.xul @@ -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; -- 2.11.0