fix: still setup for user when setting up root path with children

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2026-01-29 15:45:53 +01:00
parent aa47e85c25
commit 82d33b7727
No known key found for this signature in database
GPG key ID: 42B69D8A64526EFB

View file

@ -434,8 +434,8 @@ class SetupManager implements ISetupManager {
* @param string $path
* @return IUser|null
*/
private function getUserForPath(string $path): ?IUser {
if ($path === '' || $path === '/') {
private function getUserForPath(string $path, bool $includeChildren = false): ?IUser {
if (($path === '' || $path === '/') && !$includeChildren) {
return null;
} elseif (str_starts_with($path, '/__groupfolders')) {
return null;
@ -456,7 +456,7 @@ class SetupManager implements ISetupManager {
#[Override]
public function setupForPath(string $path, bool $includeChildren = false): void {
$user = $this->getUserForPath($path);
$user = $this->getUserForPath($path, $includeChildren);
if (!$user) {
$this->setupRoot();
return;