Also check for needed upgrade in the Sabre Maintenance connector

This commit is contained in:
Bart Visscher 2013-04-16 08:07:44 +02:00
parent ff64c87adb
commit 460f827f7e
1 changed files with 3 additions and 0 deletions

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;
}