Skip to content

A free, self-hostable news aggregator…

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

Marien Fressinaud582a0041a9de
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');
}