diff options
author | Joas Schilling <coding@schilljs.com> | 2019-06-21 10:54:34 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2019-06-21 10:54:34 +0200 |
commit | 12c7ebe30f84d10172f73af5a3efcf3d524b10b0 (patch) | |
tree | 4b831c65f480fe56c64005d2b65c40d3a754d573 /settings | |
parent | 08734326da2bf8aef1856129ac547e6d4358d805 (diff) | |
download | nextcloud-server-12c7ebe30f84d10172f73af5a3efcf3d524b10b0.tar.gz nextcloud-server-12c7ebe30f84d10172f73af5a3efcf3d524b10b0.zip |
Check if uploading to lookup server is enabled before verifying
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'settings')
-rw-r--r-- | settings/BackgroundJobs/VerifyUserData.php | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |