From 90bce5d58e76de0b0c3d9ca3a253474b82968293 Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Thu, 24 Nov 2022 11:35:02 +0100 Subject: [PATCH] Do not check quota for non Node Signed-off-by: Louis Chemineau --- apps/dav/lib/Connector/Sabre/QuotaPlugin.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/dav/lib/Connector/Sabre/QuotaPlugin.php b/apps/dav/lib/Connector/Sabre/QuotaPlugin.php index 7c6bf64602e..ff7396a0825 100644 --- a/apps/dav/lib/Connector/Sabre/QuotaPlugin.php +++ b/apps/dav/lib/Connector/Sabre/QuotaPlugin.php @@ -148,14 +148,14 @@ class QuotaPlugin extends \Sabre\DAV\ServerPlugin { 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 @@ class QuotaPlugin extends \Sabre\DAV\ServerPlugin { } $parentNode = $this->server->tree->getNodeForPath($parent); if (!$parentNode instanceof Node) { - return false; + return true; } $path = $parentNode->getPath(); } -- 2.39.5