瀏覽代碼

Check if uploading to lookup server is enabled before verifying

Signed-off-by: Joas Schilling <coding@schilljs.com>
Joas Schilling 4 年之前
父節點
當前提交
d0123a1b51
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      settings/BackgroundJobs/VerifyUserData.php

+ 3 - 1
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;
 		}