Skip to content
Snippets Groups Projects
Commit 5f31207e authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Add some more sanity checks for maintenance mode

parent 1c75b732
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment