summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/base.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php
index f4021b543b2..dbfe0eb2f27 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -737,7 +737,9 @@ class OC {
}
// Load minimum set of apps
- if (!self::checkUpgrade(false)) {
+ if (!self::checkUpgrade(false)
+ && !$systemConfig->getValue('maintenance', false)
+ && !\OCP\Util::needUpgrade()) {
// For logged-in users: Load everything
if(OC_User::isLoggedIn()) {
OC_App::loadApps();