Browse Source

Merge pull request #28616 from nextcloud/dav-move-movable-mount

always allow dav move for movable mount root
tags/v23.0.0beta1
Julius Härtl 2 years ago
parent
commit
4de981b582
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

@@ -125,7 +125,7 @@ abstract class Node implements \Sabre\DAV\INode {
public function setName($name) {

// rename is only allowed if the update privilege is granted
if (!$this->info->isUpdateable()) {
if (!($this->info->isUpdateable() || ($this->info->getMountPoint() instanceof MoveableMount && $this->info->getInternalPath() === ''))) {
throw new \Sabre\DAV\Exception\Forbidden();
}


Loading…
Cancel
Save