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

always allow dav move for movable mount root
This commit is contained in:
Julius Härtl 2021-08-30 10:24:17 +02:00 committed by GitHub
commit 4de981b582
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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();
}