]> source.dussan.org Git - nextcloud-server.git/commitdiff
Do not check quota for non Node 35409/head
authorLouis Chemineau <louis@chmn.me>
Thu, 24 Nov 2022 10:35:02 +0000 (11:35 +0100)
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>
Thu, 24 Nov 2022 15:23:21 +0000 (15:23 +0000)
Signed-off-by: Louis Chemineau <louis@chmn.me>
apps/dav/lib/Connector/Sabre/QuotaPlugin.php

index 7c6bf64602ee5f61889568ba0f186be3649aa5c5..ff7396a0825e515464d34d9658d33119d124a882 100644 (file)
@@ -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();
                }