External mount does not get DELETE and UPDATE if readonly
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
db96b0bb0b
commit
953691abb2
|
@ -272,7 +272,7 @@ abstract class Node implements \Sabre\DAV\INode {
|
||||||
$mountpointpath = substr($mountpointpath, 0, -1);
|
$mountpointpath = substr($mountpointpath, 0, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($mountpointpath === $this->info->getPath()) {
|
if (!$mountpoint->getOption('readonly', false) && $mountpointpath === $this->info->getPath()) {
|
||||||
$permissions |= \OCP\Constants::PERMISSION_DELETE | \OCP\Constants::PERMISSION_UPDATE;
|
$permissions |= \OCP\Constants::PERMISSION_DELETE | \OCP\Constants::PERMISSION_UPDATE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue