Browse Source

Disable OCS api when in maintenance mode

remotes/origin/poc-doctrine-migrations
Joas Schilling 11 years ago
parent
commit
f7dd16f1ac
  1. 2
      ocs/v1.php

2
ocs/v1.php

@ -27,7 +27,7 @@
require_once '../lib/base.php';
if (\OCP\Util::needUpgrade()) {
if (\OCP\Util::needUpgrade() || \OC::$server->getSystemConfig()->getValue('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);

Loading…
Cancel
Save