fix: fix partial external storage provider not finding root mount

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2026-02-03 16:16:22 +01:00
parent b3590dc99e
commit f2d7793630
No known key found for this signature in database
GPG key ID: 42B69D8A64526EFB

View file

@ -121,6 +121,9 @@ class DBConfigService {
public function getMountsForUserAndPath(string $userId, array $groupIds, string $path, bool $forChildren): array {
$path = str_replace('/' . $userId . '/files', '', $path);
$path = rtrim($path, '/');
if ($path === '') {
$path = '/';
}
$builder = $this->getSelectQueryBuilder();
$builder->where($builder->expr()->orX(
$builder->expr()->andX( // global mounts