From 3b49d75ca7ece1a2690507ca7b40e95737724ba2 Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 13 Oct 2022 11:53:02 -0600 Subject: [PATCH] Fix bug where sharing 3 different shares, the third link doesn't work --- api/src/Vfs/Sharing.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/src/Vfs/Sharing.php b/api/src/Vfs/Sharing.php index 5b99836c98..9339c0ca31 100644 --- a/api/src/Vfs/Sharing.php +++ b/api/src/Vfs/Sharing.php @@ -104,9 +104,11 @@ class Sharing extends \EGroupware\Api\Sharing public static function setup_share($keep_session, &$share) { // need to reset fs_tab, as resolve_url does NOT work with just share mounted - if (empty($GLOBALS['egw_info']['server']['vfs_fstab']) || count($GLOBALS['egw_info']['server']['vfs_fstab']) <= 1) + if(empty($GLOBALS['egw_info']['server']['vfs_fstab']) || count($GLOBALS['egw_info']['server']['vfs_fstab']) <= 1 || + // anonymous always needs a reset since we clear normal fstab + $GLOBALS['egw_info']['user']['account_lid'] == 'anonymous') { - unset($GLOBALS['egw_info']['server']['vfs_fstab']); // triggers reset of fstab in mount() + unset($GLOBALS['egw_info']['server']['vfs_fstab']); // triggers reset of fstab in mount() $GLOBALS['egw_info']['server']['vfs_fstab'] = Vfs::mount(); Vfs::clearstatcache(); }