From: Julius Knorr Date: Wed, 9 Oct 2024 06:25:30 +0000 (+0200) Subject: fix: Allow overriding shouldApplyQuota check from child classes X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=75381dfe0c929f03ca366853a1a0bf5ace3beee5;p=nextcloud-server.git fix: Allow overriding shouldApplyQuota check from child classes Signed-off-by: Julius Knorr --- diff --git a/lib/private/Files/Storage/Wrapper/Quota.php b/lib/private/Files/Storage/Wrapper/Quota.php index 9adc4685d34..287900d0768 100644 --- a/lib/private/Files/Storage/Wrapper/Quota.php +++ b/lib/private/Files/Storage/Wrapper/Quota.php @@ -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/'); }