mirror of
https://github.com/nextcloud/server.git
synced 2026-04-24 07:39:23 -04:00
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:
parent
aa47e85c25
commit
82d33b7727
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue