diff options
author | Julius Knorr <jus@bitgrid.net> | 2024-10-09 08:25:30 +0200 |
---|---|---|
committer | Julius Knorr <jus@bitgrid.net> | 2024-10-09 08:25:30 +0200 |
commit | 75381dfe0c929f03ca366853a1a0bf5ace3beee5 (patch) | |
tree | 860a5ede09cfd353542895706c613ff7fdd3aaf2 /lib | |
parent | 02f3c88d73758068c9ad995b59404951df1abd92 (diff) | |
download | nextcloud-server-75381dfe0c929f03ca366853a1a0bf5ace3beee5.tar.gz nextcloud-server-75381dfe0c929f03ca366853a1a0bf5ace3beee5.zip |
fix: Allow overriding shouldApplyQuota check from child classesfix/allow-quota-wrapper-check
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 9adc4685d34..287900d0768 100644 --- a/lib/private/Files/Storage/Wrapper/Quota.php +++ b/lib/private/Files/Storage/Wrapper/Quota.php @@ -150,7 +150,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/'); } |