mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 09:28:29 +01:00
fix wrong condition
This commit is contained in:
parent
fb4e6c0dfe
commit
8c0fb193e1
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user