mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
fix: fix partial external storage provider not finding root mount
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
b3590dc99e
commit
f2d7793630
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue