From 433f939d439f590109c58752bfe2dc49f5dcfdc4 Mon Sep 17 00:00:00 2001 From: Julius Knorr Date: Wed, 9 Oct 2024 08:25:30 +0200 Subject: [PATCH] fix: Allow overriding shouldApplyQuota check from child classes Signed-off-by: Julius Knorr --- lib/private/Files/Storage/Wrapper/Quota.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Files/Storage/Wrapper/Quota.php b/lib/private/Files/Storage/Wrapper/Quota.php index 35dbc9fcd2652..b8a5f82d4c74a 100644 --- a/lib/private/Files/Storage/Wrapper/Quota.php +++ b/lib/private/Files/Storage/Wrapper/Quota.php @@ -207,7 +207,7 @@ private function isPartFile($path) { /** * 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/'); }