mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 08:53:37 +01:00
Collabora's extra share needs to use restricted fstab from original share, not full fstab
This commit is contained in:
parent
10855ef0aa
commit
bd8a27ee24
@ -16,6 +16,7 @@ namespace EGroupware\Api\Vfs;
|
||||
use EGroupware\Api;
|
||||
use EGroupware\Api\Json\Response;
|
||||
use EGroupware\Api\Vfs;
|
||||
use EGroupware\Collabora\Wopi;
|
||||
use EGroupware\Filemanager\Sharing\AnonymousList;
|
||||
use EGroupware\Filemanager\Sharing\Ui;
|
||||
use EGroupware\Filemanager\Sharing\Ui as ShareUi;
|
||||
@ -444,7 +445,10 @@ class Sharing extends \EGroupware\Api\Sharing
|
||||
$stat['url'] = substr($stat['url'], 0, strlen($stat['url']) - 1);
|
||||
}
|
||||
// Make sure we get the correct path if sharing from a share
|
||||
if(isset($GLOBALS['egw']->sharing) && array_key_exists(static::get_token(), $GLOBALS['egw']->sharing) && $exists)
|
||||
if(isset($GLOBALS['egw']->sharing) && array_key_exists(static::get_token(), $GLOBALS['egw']->sharing) && $exists
|
||||
// Not for Collabora, it's working with share fstab and can't access full URL
|
||||
&& $mode !== Wopi::WOPI_WRITABLE
|
||||
)
|
||||
{
|
||||
$path = $stat['url'];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user