diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2023-11-08 13:49:05 +0100 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2023-11-14 20:03:28 +0100 |
commit | 84acc4993284ca99b96427c26a8a3384fba06073 (patch) | |
tree | 8edda4d2ea64c872d8c3a537d2869255962988d5 /lib | |
parent | 43a00169892944462deddda9b78ff1b6d517b065 (diff) | |
download | nextcloud-server-84acc4993284ca99b96427c26a8a3384fba06073.tar.gz nextcloud-server-84acc4993284ca99b96427c26a8a3384fba06073.zip |
fix(NavigationManager): Check for `appManager` before using it
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/NavigationManager.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/NavigationManager.php b/lib/private/NavigationManager.php index 30476d26f60..7eeaf6eefc5 100644 --- a/lib/private/NavigationManager.php +++ b/lib/private/NavigationManager.php @@ -218,6 +218,10 @@ class NavigationManager implements INavigationManager { ]); } + if ($this->appManager === 'null') { + return; + } + if ($this->userSession->isLoggedIn()) { // Profile $this->add([ @@ -311,10 +315,6 @@ class NavigationManager implements INavigationManager { } } - if ($this->appManager === 'null') { - return; - } - if ($this->userSession->isLoggedIn()) { $user = $this->userSession->getUser(); $apps = $this->appManager->getEnabledAppsForUser($user); |