summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/app.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/app.php b/lib/private/app.php
index dc058cadc90..01597b37e77 100644
--- a/lib/private/app.php
+++ b/lib/private/app.php
@@ -195,6 +195,9 @@ class OC_App {
}
sort($apps);
array_unshift($apps, 'files');
+ // Only cache the app list, when the user is logged in.
+ // Otherwise we cache the list with disabled apps, although
+ // the apps are enabled for the user after he logged in.
if ($user) {
self::$enabledAppsCache = $apps;
}