diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2024-03-14 09:26:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-14 09:26:20 +0100 |
commit | 10593d18476ab51b5cc323a0d4fe51cad2469947 (patch) | |
tree | 0bcb5ab4c0c8ff0f90c591e0150057e988da2883 /lib | |
parent | 5764f037d6ceceb3da1c47a9301fe8341e3d7bde (diff) | |
parent | 1f2d267443f71f1b571c2f5266b8b06cd24b5f0c (diff) | |
download | nextcloud-server-10593d18476ab51b5cc323a0d4fe51cad2469947.tar.gz nextcloud-server-10593d18476ab51b5cc323a0d4fe51cad2469947.zip |
Merge pull request #44178 from nextcloud/fix/noid/nav-init-add
fix(Navigation): ensure NavManager is inited when adding an entry
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/NavigationManager.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/private/NavigationManager.php b/lib/private/NavigationManager.php index cac52ab5c9f..0ce2b3124b2 100644 --- a/lib/private/NavigationManager.php +++ b/lib/private/NavigationManager.php @@ -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()) { |