]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix: Allow overriding shouldApplyQuota check from child classes fix/allow-quota-wrapper-check 48623/head
authorJulius Knorr <jus@bitgrid.net>
Wed, 9 Oct 2024 06:25:30 +0000 (08:25 +0200)
committerJulius Knorr <jus@bitgrid.net>
Wed, 9 Oct 2024 06:25:30 +0000 (08:25 +0200)
Signed-off-by: Julius Knorr <jus@bitgrid.net>
lib/private/Files/Storage/Wrapper/Quota.php

index 9adc4685d34b6f1bb7b7a44052f2faf9b1eaa967..287900d0768bbd6da02300a8fbaecac720bca392 100644 (file)
@@ -150,7 +150,7 @@ class Quota extends Wrapper {
        /**
         * Only apply quota for files, not metadata, trash or others
         */
-       private function shouldApplyQuota(string $path): bool {
+       protected function shouldApplyQuota(string $path): bool {
                return str_starts_with(ltrim($path, '/'), 'files/');
        }