Skip to content

Commit

Permalink
fix: Allow overriding shouldApplyQuota check from child classes
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Knorr <jus@bitgrid.net>
  • Loading branch information
juliushaertl authored and backportbot[bot] committed Oct 9, 2024
1 parent f23f6ff commit 433f939
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Files/Storage/Wrapper/Quota.php
Original file line number Diff line number Diff line change
Expand Up @@ -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/');
}

Expand Down

0 comments on commit 433f939

Please sign in to comment.