mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
Fix bug where sharing 3 different shares, the third link doesn't work
This commit is contained in:
parent
68f424173e
commit
359fcf9782
@ -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