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
parent 34b9721c7b
commit 643e9ffb06

View file

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