aboutsummaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-01-09 21:52:16 +0100
committerLukas Reschke <lukas@owncloud.com>2015-01-09 21:52:16 +0100
commit5f31207e841e567d25fc99f7c34274ca5dd9e630 (patch)
tree80e28cf31ff59d51eef8c25936f8ce3ae10c2968 /lib/base.php
parent1c75b73239348f5c21846c502e563ffbf679f156 (diff)
downloadnextcloud-server-5f31207e841e567d25fc99f7c34274ca5dd9e630.tar.gz
nextcloud-server-5f31207e841e567d25fc99f7c34274ca5dd9e630.zip
Add some more sanity checks for maintenance mode
Diffstat (limited to 'lib/base.php')
-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();