Browse Source

Also check for needed upgrade in the Sabre Maintenance connector

tags/v6.0.0alpha2
Bart Visscher 11 years ago
parent
commit
460f827f7e
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      lib/connector/sabre/maintenanceplugin.php

+ 3
- 0
lib/connector/sabre/maintenanceplugin.php View File

@@ -50,6 +50,9 @@ class OC_Connector_Sabre_MaintenancePlugin extends Sabre_DAV_ServerPlugin
if (OC_Config::getValue('maintenance', false)) {
throw new Sabre_DAV_Exception_ServiceUnavailable();
}
if (OC::checkUpgrade(false)) {
throw new Sabre_DAV_Exception_ServiceUnavailable('Upgrade needed');
}

return true;
}

Loading…
Cancel
Save