From 582a0041a9de7896813d63c38aef1312fe23a188 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Mon, 20 Apr 2020 17:48:41 +0200 Subject: Don't check email if feature disabled or for admin (#2917) --- app/FreshRSS.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/FreshRSS.php') diff --git a/app/FreshRSS.php b/app/FreshRSS.php index 2754074b0..32c3c39d0 100644 --- a/app/FreshRSS.php +++ b/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'); } -- cgit v1.2.3