mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:49:10 +01:00
Fix bug where sharing 3 different shares, the third link doesn't work
This commit is contained in:
parent
e9545739cb
commit
3b49d75ca7
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user