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:19:35 +0000 (15:19 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 29 May 2008 15:19:35 +0000 (15:19 +0000)
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

index 037975b..cbb1f7e 100644 (file)
@@ -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;