From d0123a1b51ee698937fbd5c08412f324cdde5a1b Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 21 Jun 2019 10:54:34 +0200 Subject: [PATCH] Check if uploading to lookup server is enabled before verifying Signed-off-by: Joas Schilling --- settings/BackgroundJobs/VerifyUserData.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/settings/BackgroundJobs/VerifyUserData.php b/settings/BackgroundJobs/VerifyUserData.php index cf71cbd67b..ed157581c5 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; }