diff --git a/apps/dav/lib/Connector/Sabre/QuotaPlugin.php b/apps/dav/lib/Connector/Sabre/QuotaPlugin.php index 7c6bf64602ee5..ff7396a0825e5 100644 --- a/apps/dav/lib/Connector/Sabre/QuotaPlugin.php +++ b/apps/dav/lib/Connector/Sabre/QuotaPlugin.php @@ -148,14 +148,14 @@ public function beforeMove($source, $destination) { public function beforeCopy(string $sourcePath, string $destinationPath): bool { $sourceNode = $this->server->tree->getNodeForPath($sourcePath); if (!$sourceNode instanceof Node) { - return false; + return true; } // get target node for proper path conversion if ($this->server->tree->nodeExists($destinationPath)) { $destinationNode = $this->server->tree->getNodeForPath($destinationPath); if (!$destinationNode instanceof Node) { - return false; + return true; } $path = $destinationNode->getPath(); } else { @@ -165,7 +165,7 @@ public function beforeCopy(string $sourcePath, string $destinationPath): bool { } $parentNode = $this->server->tree->getNodeForPath($parent); if (!$parentNode instanceof Node) { - return false; + return true; } $path = $parentNode->getPath(); }