]> source.dussan.org Git - nextcloud-server.git/commitdiff
Also check for needed upgrade in the Sabre Maintenance connector
authorBart Visscher <bartv@thisnet.nl>
Tue, 16 Apr 2013 06:07:44 +0000 (08:07 +0200)
committerBart Visscher <bartv@thisnet.nl>
Fri, 3 May 2013 22:07:30 +0000 (00:07 +0200)
lib/connector/sabre/maintenanceplugin.php

index 329fa4443ad7076aabe5f0364fc605362ff26982..2eda269afc2c8c0c81c4467b43f6e4a35f199cc5 100644 (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;
        }