From: Joas Schilling Date: Fri, 21 Jun 2019 08:54:34 +0000 (+0200) Subject: Check if uploading to lookup server is enabled before verifying X-Git-Tag: v15.0.9RC1~10^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F16092%2Fhead;p=nextcloud-server.git Check if uploading to lookup server is enabled before verifying Signed-off-by: Joas Schilling --- diff --git a/settings/BackgroundJobs/VerifyUserData.php b/settings/BackgroundJobs/VerifyUserData.php index cf71cbd67bc..ed157581c57 100644 --- a/settings/BackgroundJobs/VerifyUserData.php +++ b/settings/BackgroundJobs/VerifyUserData.php @@ -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; }