diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-03-08 19:53:17 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-05-01 15:18:56 +0200 |
commit | 953691abb252aa35e8cc290b4135fbdf88fa9e7f (patch) | |
tree | 4b8d8eb4867d8aefde282533ef2fcc3929ff75d3 /apps/dav | |
parent | db96b0bb0b67ceb99c49e131aef9f3d3f436a23c (diff) | |
download | nextcloud-server-953691abb252aa35e8cc290b4135fbdf88fa9e7f.tar.gz nextcloud-server-953691abb252aa35e8cc290b4135fbdf88fa9e7f.zip |
External mount does not get DELETE and UPDATE if readonly
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/lib/Connector/Sabre/Node.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/Connector/Sabre/Node.php b/apps/dav/lib/Connector/Sabre/Node.php index fd237b604a9..9e78d21a39d 100644 --- a/apps/dav/lib/Connector/Sabre/Node.php +++ b/apps/dav/lib/Connector/Sabre/Node.php @@ -272,7 +272,7 @@ abstract class Node implements \Sabre\DAV\INode { $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; } } |