Add some more sanity checks for maintenance mode

This commit is contained in:
Lukas Reschke 2015-01-09 21:52:16 +01:00
parent 1c75b73239
commit 5f31207e84
1 changed files with 3 additions and 1 deletions

View File

@ -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();