From 165cbfdbd13c72adcf9d624433a9d82761d264bc Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 29 Jul 2014 16:43:51 -0400 Subject: [PATCH] only set is_browser_staff when no xul header present Signed-off-by: Bill Erickson --- Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm index 58c6475dbe..9bd22d88f1 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm @@ -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; } -- 2.11.0