diff options
author | Julius Knorr <jus@bitgrid.net> | 2024-10-09 08:25:30 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-10-09 16:43:10 +0000 |
commit | 433f939d439f590109c58752bfe2dc49f5dcfdc4 (patch) | |
tree | 38829dd8f02ae5ce2fc4e061d32b4a6eb2b357a3 /lib | |
parent | f23f6ff63aa03a722151580811e37d3cd51b2985 (diff) | |
download | nextcloud-server-433f939d439f590109c58752bfe2dc49f5dcfdc4.tar.gz nextcloud-server-433f939d439f590109c58752bfe2dc49f5dcfdc4.zip |
fix: Allow overriding shouldApplyQuota check from child classesbackport/48623/stable29
Signed-off-by: Julius Knorr <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/Storage/Wrapper/Quota.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Storage/Wrapper/Quota.php b/lib/private/Files/Storage/Wrapper/Quota.php index 35dbc9fcd26..b8a5f82d4c7 100644 --- a/lib/private/Files/Storage/Wrapper/Quota.php +++ b/lib/private/Files/Storage/Wrapper/Quota.php @@ -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/'); } |