Merge pull request #44178 from nextcloud/fix/noid/nav-init-add

fix(Navigation): ensure NavManager is inited when adding an entry
This commit is contained in:
Arthur Schiwon 2024-03-14 09:26:20 +01:00 committed by GitHub
commit 10593d1847
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 4 deletions

View File

@ -94,6 +94,7 @@ class NavigationManager implements INavigationManager {
$this->closureEntries[] = $entry;
return;
}
$this->init();
$id = $entry['id'];
@ -236,10 +237,6 @@ class NavigationManager implements INavigationManager {
]);
}
if ($this->appManager === 'null') {
return;
}
$this->defaultApp = $this->appManager->getDefaultAppForUser($this->userSession->getUser(), false);
if ($this->userSession->isLoggedIn()) {