From 159a370da666f91004957578e8e8b288e62c73a4 Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 20 Sep 2022 11:33:16 -0600 Subject: [PATCH] Fix more than one anonymous shares gave error / BasicAuth prompt First one was successful, but subsequent anonymous shares in the same browser failed --- api/src/Vfs/Sharing.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/Vfs/Sharing.php b/api/src/Vfs/Sharing.php index a1ddf4fba0..1014d21424 100644 --- a/api/src/Vfs/Sharing.php +++ b/api/src/Vfs/Sharing.php @@ -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