mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Merge pull request #28616 from nextcloud/dav-move-movable-mount
always allow dav move for movable mount root
This commit is contained in:
commit
4de981b582
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue