Skip to content

Commit 8d68a6c

Browse files
committed
fix: fix getting groupfolder mount for users home directory
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent 16c76f0 commit 8d68a6c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/Mount/MountProvider.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,11 @@ public function getMountsForPath(string $setupPathHint, bool $forChildren, array
284284
continue;
285285
}
286286

287-
$userFolders[$user->getUID()] ??= $this->folderManager->getFoldersForUser($user, null, implode('/', array_splice($parts, 3, -1)), $forChildren);
287+
$relativePath = implode('/', array_splice($parts, 3, -1));
288+
if ($relativePath === '') {
289+
$relativePath = '/';
290+
}
291+
$userFolders[$user->getUID()] ??= $this->folderManager->getFoldersForUser($user, null, $relativePath, $forChildren);
288292
$folders = $userFolders[$user->getUID()];
289293

290294
foreach ($folders as $folder) {

0 commit comments

Comments
 (0)