only set is_browser_staff when no xul header present
authorBill Erickson <berick@esilibrary.com>
Tue, 29 Jul 2014 20:43:51 +0000 (16:43 -0400)
committerBill Erickson <berick@esilibrary.com>
Tue, 29 Jul 2014 20:43:51 +0000 (16:43 -0400)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm

index 58c6475..9bd22d8 100644 (file)
@@ -292,7 +292,7 @@ sub load_common {
             # browser (and hence same ses cookie) in an unnatural is_staff
             # state.  Consider alternatives for determining is_staff / 
             # is_browser_staff when $xul_wrapper is false.
-            if ($e->requestor->wsid) {
+            if (!$xul_wrapper and $e->requestor->wsid) {
                 $ctx->{is_staff} = 1;
                 $ctx->{is_browser_staff} = 1;
             }