diff options
author | Julius Knorr <jus@bitgrid.net> | 2024-10-09 08:25:30 +0200 |
---|---|---|
committer | Julius Knorr <jus@bitgrid.net> | 2024-10-28 09:46:45 +0100 |
commit | 643e9ffb06dcf72f90a75fdcf967155428debb2a (patch) | |
tree | c21544676231b78148c93aabc3c1fa2eac5283c0 /lib | |
parent | 34b9721c7b8b5f05c361ac7e53e028d4c27b3050 (diff) | |
download | nextcloud-server-643e9ffb06dcf72f90a75fdcf967155428debb2a.tar.gz nextcloud-server-643e9ffb06dcf72f90a75fdcf967155428debb2a.zip |
fix: Allow overriding shouldApplyQuota check from child classesbackport/48623/stable30
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 8c6799fdd2d..f95206cc537 100644 --- a/lib/private/Files/Storage/Wrapper/Quota.php +++ b/lib/private/Files/Storage/Wrapper/Quota.php @@ -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/'); } |