]> source.dussan.org Git - nextcloud-server.git/commitdiff
Check if uploading to lookup server is enabled before verifying 16091/head
authorJoas Schilling <coding@schilljs.com>
Fri, 21 Jun 2019 08:54:34 +0000 (10:54 +0200)
committerBackportbot <backportbot-noreply@rullzer.com>
Wed, 26 Jun 2019 08:19:04 +0000 (08:19 +0000)
Signed-off-by: Joas Schilling <coding@schilljs.com>
settings/BackgroundJobs/VerifyUserData.php

index cf71cbd67bcb412829be874018f4517bba542d75..ed157581c57e450610a843fb7ab34436c4be7fa9 100644 (file)
@@ -186,7 +186,9 @@ class VerifyUserData extends Job {
         * @return bool true if we could check the verification code, otherwise false
         */
        protected function verifyViaLookupServer(array $argument, $dataType) {
-               if(empty($this->lookupServerUrl) || $this->config->getSystemValue('has_internet_connection', true) === false) {
+               if(empty($this->lookupServerUrl) ||
+                       $this->config->getAppValue('files_sharing', 'lookupServerUploadEnabled', 'yes') !== 'yes' ||
+                       $this->config->getSystemValue('has_internet_connection', true) === false) {
                        return false;
                }