block ocs in single user mode

remotes/origin/poc-doctrine-migrations
Robin Appelman 10 years ago
parent 8af106cc75
commit a7aba07dc1
  1. 4
      ocs/v1.php

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