fix subfolder reshares over webdav
This commit is contained in:
parent
57f49391dc
commit
7a3a8e4032
|
@ -58,8 +58,8 @@ $server->on('beforeMethod', function () use ($server, $objectTree, $authBackend)
|
||||||
$share = $authBackend->getShare();
|
$share = $authBackend->getShare();
|
||||||
$rootShare = \OCP\Share::resolveReShare($share);
|
$rootShare = \OCP\Share::resolveReShare($share);
|
||||||
$owner = $rootShare['uid_owner'];
|
$owner = $rootShare['uid_owner'];
|
||||||
$isWritable = $rootShare['permissions'] & (\OCP\Constants::PERMISSION_UPDATE | \OCP\Constants::PERMISSION_CREATE);
|
$isWritable = $share['permissions'] & (\OCP\Constants::PERMISSION_UPDATE | \OCP\Constants::PERMISSION_CREATE);
|
||||||
$fileId = $rootShare['file_source'];
|
$fileId = $share['file_source'];
|
||||||
|
|
||||||
if (!$isWritable) {
|
if (!$isWritable) {
|
||||||
\OC\Files\Filesystem::addStorageWrapper('readonly', function ($mountPoint, $storage) {
|
\OC\Files\Filesystem::addStorageWrapper('readonly', function ($mountPoint, $storage) {
|
||||||
|
|
Loading…
Reference in New Issue