Skip to content

Commit 38e6ad7

Browse files
committed
fix(QuotaPlugin): Always check the quota before moving
Signed-off-by: provokateurin <kate@provokateurin.de>
1 parent 8e04afc commit 38e6ad7

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

apps/dav/lib/Connector/Sabre/QuotaPlugin.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
namespace OCA\DAV\Connector\Sabre;
1010

1111
use OC\Files\View;
12-
use OCA\DAV\Upload\FutureFile;
1312
use OCA\DAV\Upload\UploadFolder;
1413
use OCP\Files\StorageNotAvailableException;
1514
use Sabre\DAV\Exception\InsufficientStorage;
@@ -138,9 +137,6 @@ public function beforeWriteContent($uri, INode $node, $data, $modified) {
138137
*/
139138
public function beforeMove(string $sourcePath, string $destinationPath): bool {
140139
$sourceNode = $this->server->tree->getNodeForPath($sourcePath);
141-
if (!$sourceNode instanceof FutureFile) {
142-
return true;
143-
}
144140

145141
try {
146142
// The final path is not known yet, we check the quota on the parent

0 commit comments

Comments
 (0)