aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2023-11-08 13:49:05 +0100
committerFerdinand Thiessen <opensource@fthiessen.de>2023-11-14 20:03:28 +0100
commit84acc4993284ca99b96427c26a8a3384fba06073 (patch)
tree8edda4d2ea64c872d8c3a537d2869255962988d5 /lib
parent43a00169892944462deddda9b78ff1b6d517b065 (diff)
downloadnextcloud-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.php8
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);