mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-07 05:49:53 +01:00
Fix broken sharing caused by commit 89a8e6f448
This commit is contained in:
parent
a987ddbe85
commit
bba57a254b
@ -169,8 +169,8 @@ class Sharing
|
|||||||
if (!isset($_SERVER['PHP_AUTH_PW'])) $_SERVER['PHP_AUTH_PW'] = '';
|
if (!isset($_SERVER['PHP_AUTH_PW'])) $_SERVER['PHP_AUTH_PW'] = '';
|
||||||
|
|
||||||
unset($GLOBALS['egw_info']['flags']['autocreate_session_callback']);
|
unset($GLOBALS['egw_info']['flags']['autocreate_session_callback']);
|
||||||
if (isset($GLOBALS['egw']->sharing) && $GLOBALS['egw']->session->verify() &&
|
if (isset($GLOBALS['egw']->session) && $GLOBALS['egw']->session->verify()
|
||||||
$GLOBALS['egw']->sharing->share['share_token'] === $token)
|
&& isset($GLOBALS['egw']->sharing) && $GLOBALS['egw']->sharing->share['share_token'] === $token)
|
||||||
{
|
{
|
||||||
return $GLOBALS['egw']->session->sessionid;
|
return $GLOBALS['egw']->session->sessionid;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user