Fix editable link opened by original user in new tab gave "Requested resource '/' does NOT exist!"

This commit is contained in:
nathangray 2021-03-03 14:23:42 -07:00
parent 7e4ccc8311
commit a8278b37ff

View File

@ -507,7 +507,7 @@ class Sharing
public function ServeRequest()
{
// sharing is for a different share, change to current share
if (empty($this->share['skip_validate_token']) && $this->share['share_token'] !== self::get_token())
if (empty($this->share['skip_validate_token']) && self::get_token() && $this->share['share_token'] !== self::get_token())
{
// 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' &&