allow moving files to the root

This commit is contained in:
Bjoern Schiessle 2014-05-27 20:48:19 +02:00 committed by Robin Appelman
parent 884b9a0ecf
commit b0a74edbb2
1 changed files with 0 additions and 4 deletions

View File

@ -126,10 +126,6 @@ class ObjectTree extends \Sabre\DAV\ObjectTree {
throw new \Sabre\DAV\Exception\Forbidden();
}
if ($sourceDir !== $destinationDir) {
// for a full move we need update privileges on sourcePath and sourceDir as well as destinationDir
if (ltrim($destinationDir, '/') === '') {
throw new \Sabre\DAV\Exception\Forbidden();
}
if (!$this->fileView->isUpdatable($sourceDir)) {
throw new \Sabre\DAV\Exception\Forbidden();
}