]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add comment
authorRobin Appelman <icewind@owncloud.com>
Mon, 23 Jun 2014 13:14:35 +0000 (15:14 +0200)
committerRobin Appelman <icewind@owncloud.com>
Mon, 23 Jun 2014 13:14:35 +0000 (15:14 +0200)
lib/private/app.php

index dc058cadc904a2e1b294dc4361c6514a3c49cefc..01597b37e77458acb6eb74d04f5e41476b2b392e 100644 (file)
@@ -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;
                }