From: Joas Schilling Date: Wed, 8 Apr 2015 10:51:20 +0000 (+0200) Subject: Disable OCS api when in maintenance mode X-Git-Tag: v7.0.6RC1~8^2~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=88006222a9a468626bba6412fd7f21dac41057c0;p=nextcloud-server.git Disable OCS api when in maintenance mode --- diff --git a/ocs/v1.php b/ocs/v1.php index 0a86fb06411..495ce22585e 100644 --- a/ocs/v1.php +++ b/ocs/v1.php @@ -23,7 +23,7 @@ require_once '../lib/base.php'; -if (\OCP\Util::needUpgrade()) { +if (\OCP\Util::needUpgrade() || \OCP\Config::getSystemValue('maintenance', false)) { // since the behavior of apps or remotes are unpredictable during // an upgrade, return a 503 directly OC_Response::setStatus(OC_Response::STATUS_SERVICE_UNAVAILABLE);