fix: Allow overriding shouldApplyQuota check from child classes

Signed-off-by: Julius Knorr <jus@bitgrid.net>
This commit is contained in:
Julius Knorr 2024-10-09 08:25:30 +02:00 committed by backportbot[bot]
parent f23f6ff63a
commit 433f939d43

View file

@ -207,7 +207,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/');
}