Skip to content

Commit

Permalink
auth: do not throw here if not authenticated (#1848)
Browse files Browse the repository at this point in the history
  • Loading branch information
monkeyiq committed Apr 1, 2024
1 parent 6477f8d commit 2f10de3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion classes/utils/Config.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 2f10de3

Please sign in to comment.