summaryrefslogtreecommitdiffstats
path: root/lib/connector
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-04-16 08:07:44 +0200
committerBart Visscher <bartv@thisnet.nl>2013-05-04 00:07:30 +0200
commit460f827f7e5d80cfa56b70536e86ac0aea0cd448 (patch)
tree7e1219af72adad26918ab4c6297418c37af19244 /lib/connector
parentff64c87adbadd1791f08a53277eafdb2d58079d5 (diff)
downloadnextcloud-server-460f827f7e5d80cfa56b70536e86ac0aea0cd448.tar.gz
nextcloud-server-460f827f7e5d80cfa56b70536e86ac0aea0cd448.zip
Also check for needed upgrade in the Sabre Maintenance connector
Diffstat (limited to 'lib/connector')
-rw-r--r--lib/connector/sabre/maintenanceplugin.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/connector/sabre/maintenanceplugin.php b/lib/connector/sabre/maintenanceplugin.php
index 329fa4443ad..2eda269afc2 100644
--- a/lib/connector/sabre/maintenanceplugin.php
+++ b/lib/connector/sabre/maintenanceplugin.php
@@ -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;
}