Add some more sanity checks for maintenance mode
This commit is contained in:
parent
1c75b73239
commit
5f31207e84
|
@ -737,7 +737,9 @@ class OC {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load minimum set of apps
|
// 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
|
// For logged-in users: Load everything
|
||||||
if(OC_User::isLoggedIn()) {
|
if(OC_User::isLoggedIn()) {
|
||||||
OC_App::loadApps();
|
OC_App::loadApps();
|
||||||
|
|
Loading…
Reference in New Issue