diff options
author | Simon L <szaimen@e.mail.de> | 2022-11-24 18:23:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-24 18:23:34 +0100 |
commit | 4a3b259baf786dfd6c289ccec28bab1a06f13451 (patch) | |
tree | 62756f7474d80f5e4b235e05be635ccde1cbb5ae | |
parent | 4bdfbe1a1f7f29b60cbb94454f5e59a0650bea3f (diff) | |
parent | 796c57121d1e4ba474350dfa0eb4dd2eb706eb16 (diff) | |
download | nextcloud-server-4a3b259baf786dfd6c289ccec28bab1a06f13451.tar.gz nextcloud-server-4a3b259baf786dfd6c289ccec28bab1a06f13451.zip |
Merge pull request #35408 from nextcloud/backport/35398/stable25
[stable25] Do not check quota for non Node
-rw-r--r-- | apps/dav/lib/Connector/Sabre/QuotaPlugin.php | 6 |
1 files 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(); } |