just in case JSON returns that value as a string instead of a number
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 29 May 2008 15:18:05 +0000 (15:18 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 29 May 2008 15:18:05 +0000 (15:18 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@9728 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/main/ws_info.xul

index f2764ec..141a275 100644 (file)
@@ -77,7 +77,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(document.getElementById('commonStrings').getString('staff.main.gen_offline_widgets.workstation_registration_denied'));
                                xulG.auth.logoff();
                                return;