Browse Source

External mount does not get DELETE and UPDATE if readonly

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
tags/v14.0.0beta1
Roeland Jago Douma 6 years ago
parent
commit
953691abb2
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      apps/dav/lib/Connector/Sabre/Node.php

+ 1
- 1
apps/dav/lib/Connector/Sabre/Node.php View File

@@ -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;
}
}

Loading…
Cancel
Save