From: pines Date: Tue, 15 May 2007 21:43:17 +0000 (+0000) Subject: handle -1 from open-ils.actor.user.perm.highest_org X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c970575045641c82042ec4a23e6a460044889061;p=Evergreen.git handle -1 from open-ils.actor.user.perm.highest_org git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_0@7311 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- 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 c9a2e672f3..61abbd5fc3 100644 --- a/Open-ILS/xul/staff_client/server/main/ws_info.xul +++ b/Open-ILS/xul/staff_client/server/main/ws_info.xul @@ -83,6 +83,11 @@ 'PERM_RETRIEVE_HIGHEST_ORG', [ xulG.auth.session.key, g.user.id(), 'REGISTER_WORKSTATION'] ); + if (highest_org_id == -1) { + alert('You do not have permission to register a workstation.'); + xulG.auth.logoff(); + return; + } var perm_depth = findOrgDepth( highest_org_id ); g.my_libs_tree = g.network.simple_request(