Fix more than one anonymous shares gave error / BasicAuth prompt

First one was successful, but subsequent anonymous shares in the same browser failed
This commit is contained in:
nathan 2022-09-20 11:33:16 -06:00
parent e03fea2e9b
commit 159a370da6

View File

@ -153,8 +153,8 @@ class Sharing extends \EGroupware\Api\Sharing
// in Session->read_repositories() to make sure we get access to these apps when the session loads the apps.
$apps = $GLOBALS['egw']->acl->get_user_applications($share['share_owner']);
$GLOBALS['egw_info']['user']['apps'] = array(
'filemanager' => $GLOBALS['egw_info']['apps']['filemanager'] || true,
'collabora' => $GLOBALS['egw_info']['apps']['collabora'] || $apps['collabora']
'filemanager' => $GLOBALS['egw_info']['apps']['filemanager'] ?? true,
'collabora' => $GLOBALS['egw_info']['apps']['collabora'] ?? $apps['collabora']
);
// Need to re-init stream wrapper, as some of them look at preferences or permissions