Also check for needed upgrade in the Sabre Maintenance connector
This commit is contained in:
parent
ff64c87adb
commit
460f827f7e
|
@ -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…
Reference in New Issue