mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
Fix hidden upload share link would not work for logged in user that was not share owner
This commit is contained in:
parent
c21af32c1b
commit
ce17d087c1
@ -68,7 +68,7 @@ class HiddenUploadSharing extends Sharing
|
||||
parent::setup_share(true, $share);
|
||||
|
||||
// upload dir needs the full url incl. share owner, but not readonly
|
||||
$upload_dir = Vfs::concat(str_replace('?ro=1', '',$share['resolve_url'] ?: $resolve_url), self::HIDDEN_UPLOAD_DIR);
|
||||
$upload_dir = Vfs::concat(str_replace('?ro=1', '',Vfs::mount()[$share['share_root']] ?: $resolve_url), self::HIDDEN_UPLOAD_DIR);
|
||||
$upload_mount = Vfs::concat($share['share_root'], self::HIDDEN_UPLOAD_DIR);
|
||||
|
||||
// Mounting upload dir, has original share owner access (write)
|
||||
|
Loading…
Reference in New Issue
Block a user