Fix permissions check when moving a file to a different directory over webdav
This commit is contained in:
parent
ca96b9d3d5
commit
80e6d357a2
|
@ -135,10 +135,7 @@ class ObjectTree extends \Sabre\DAV\ObjectTree {
|
|||
throw new \Sabre\DAV\Exception\Forbidden();
|
||||
}
|
||||
if ($sourceDir !== $destinationDir) {
|
||||
if (!$this->fileView->isUpdatable($sourceDir)) {
|
||||
throw new \Sabre\DAV\Exception\Forbidden();
|
||||
}
|
||||
if (!$this->fileView->isUpdatable($destinationDir)) {
|
||||
if (!$this->fileView->isCreatable($destinationDir)) {
|
||||
throw new \Sabre\DAV\Exception\Forbidden();
|
||||
}
|
||||
if (!$this->fileView->isDeletable($sourcePath) && !$isMovableMount) {
|
||||
|
|
Loading…
Reference in New Issue