From: Bill Erickson Date: Tue, 29 Jul 2014 20:43:51 +0000 (-0400) Subject: only set is_browser_staff when no xul header present X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=165cbfdbd13c72adcf9d624433a9d82761d264bc;p=working%2FEvergreen.git only set is_browser_staff when no xul header present Signed-off-by: Bill Erickson --- 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; }