Skip to content

Commit

Permalink
Merge pull request nextcloud#16027 from nextcloud/bugfix/noid/check-i…
Browse files Browse the repository at this point in the history
…f-uploading-is-enabled-before-verifying

Check if uploading to lookup server is enabled before verifying
  • Loading branch information
rullzer authored Jun 25, 2019
2 parents 2f5810f + 12c7ebe commit da025d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion settings/BackgroundJobs/VerifyUserData.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,9 @@ protected function verifyWebsite(array $argument) {
* @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;
}

Expand Down

0 comments on commit da025d4

Please sign in to comment.