From 2f10de366d0e6baa5b5aa829c4fbc6807bcedb38 Mon Sep 17 00:00:00 2001 From: monkeyiq Date: Tue, 2 Apr 2024 09:43:10 +1000 Subject: [PATCH] auth: do not throw here if not authenticated (#1848) --- classes/utils/Config.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/utils/Config.class.php b/classes/utils/Config.class.php index 163d1c821..a4d819bc6 100644 --- a/classes/utils/Config.class.php +++ b/classes/utils/Config.class.php @@ -165,8 +165,9 @@ private static function load($virtualhost = null) } // Load config regex overrides if used and present + // if not authenticated then do not throw, just do not load these files $auth_config_regex_files = self::get('auth_config_regex_files'); - if( !empty($auth_config_regex_files) && is_array($auth_config_regex_files) && Auth::isAuthenticated()) { + if( !empty($auth_config_regex_files) && is_array($auth_config_regex_files) && Auth::isAuthenticated(false)) { $auth_attrs = Auth::attributes(); foreach ($auth_config_regex_files as $attr=>$regex_and_configs) { if (!is_array($regex_and_configs)) {