mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
fix: don't try to setup for a user when setting up /
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
d9d1d04e2e
commit
a6bcb1075f
1 changed files with 4 additions and 2 deletions
|
|
@ -434,8 +434,10 @@ class SetupManager {
|
|||
* @param string $path
|
||||
* @return IUser|null
|
||||
*/
|
||||
private function getUserForPath(string $path) {
|
||||
if (str_starts_with($path, '/__groupfolders')) {
|
||||
private function getUserForPath(string $path): ?IUser {
|
||||
if ($path === '' || $path === '/') {
|
||||
return null;
|
||||
} elseif (str_starts_with($path, '/__groupfolders')) {
|
||||
return null;
|
||||
} elseif (substr_count($path, '/') < 2) {
|
||||
if ($user = $this->userSession->getUser()) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue