fix wrong condition

This commit is contained in:
Ralf Becker 2020-04-06 09:05:39 +02:00
parent fb4e6c0dfe
commit 8c0fb193e1

View File

@ -492,8 +492,9 @@ class Sharing
// sharing is for a different share, change to current share
if ($this->share['share_token'] !== self::get_token())
{
self::create_session($GLOBALS['egw']->session->session_flags === 'N' ||
$GLOBALS['egw_info']['user']['account_lid'] === 'anonymous');
// to keep the session we require the regular user flag "N" AND a user-name not equal to "anonymous"
self::create_session($GLOBALS['egw']->session->session_flags === 'N' &&
$GLOBALS['egw_info']['user']['account_lid'] !== 'anonymous');
return $GLOBALS['egw']->sharing->ServeRequest();
}