forked from extern/egroupware
Re-init static streamwrapper, as some of them look at permissions or preferences
This commit is contained in:
parent
db84ba5240
commit
357e5a3326
@ -239,6 +239,14 @@ class Sharing
|
|||||||
|
|
||||||
$share['share_root'] = '/';
|
$share['share_root'] = '/';
|
||||||
Vfs::$user = $share['share_owner'];
|
Vfs::$user = $share['share_owner'];
|
||||||
|
|
||||||
|
// Need to re-init stream wrapper, as some of them look at
|
||||||
|
// preferences or permissions
|
||||||
|
$scheme = Vfs\StreamWrapper::scheme2class(Vfs::parse_url($share['resolve_url'],PHP_URL_SCHEME));
|
||||||
|
if($scheme && method_exists($scheme, 'init_static'))
|
||||||
|
{
|
||||||
|
$scheme::init_static();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// mounting share
|
// mounting share
|
||||||
|
Loading…
Reference in New Issue
Block a user