Browse Source

Don't check email if feature disabled or for admin (#2917)

Marien Fressinaud 6 years ago
parent
commit
582a0041a9
1 changed files with 3 additions and 1 deletions
  1. 3 1
      app/FreshRSS.php

+ 3 - 1
app/FreshRSS.php

@@ -54,7 +54,9 @@ class FreshRSS extends Minz_FrontController {
 			Minz_ExtensionManager::enableByList($ext_list);
 		}
 
-		self::checkEmailValidated();
+		if ($system_conf->force_email_validation && !FreshRSS_Auth::hasAccess('admin')) {
+			self::checkEmailValidated();
+		}
 
 		Minz_ExtensionManager::callHook('freshrss_init');
 	}