Skip to content

Commit

Permalink
Foreign module may need a check
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Feb 20, 2022
1 parent b374ad7 commit 39ea464
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web-lib-funcs.pl
Expand Up @@ -5144,7 +5144,8 @@ sub init_config
}

if ($module_name && !$main::no_acl_check &&
!defined($ENV{'FOREIGN_MODULE_NAME'}) &&
(!defined($ENV{'FOREIGN_MODULE_NAME'}) ||
defined($ENV{'FOREIGN_MODULE_SEC_CHECK'})) &&
$main::webmin_script_type eq 'web') {
# Check if the HTTP user can access this module
if (!&foreign_available($module_name)) {
Expand Down

0 comments on commit 39ea464

Please sign in to comment.