aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJulius Knorr <jus@bitgrid.net>2024-10-09 08:25:30 +0200
committerJulius Knorr <jus@bitgrid.net>2024-10-09 08:25:30 +0200
commit75381dfe0c929f03ca366853a1a0bf5ace3beee5 (patch)
tree860a5ede09cfd353542895706c613ff7fdd3aaf2 /lib
parent02f3c88d73758068c9ad995b59404951df1abd92 (diff)
downloadnextcloud-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.php2
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/');
}