mirror of
https://github.com/webmin/webmin.git
synced 2026-05-14 10:40:29 +01:00
Foreign module may need a check
This commit is contained in:
@@ -5144,7 +5144,8 @@ if ($module_name) {
|
||||
}
|
||||
|
||||
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)) {
|
||||
|
||||
Reference in New Issue
Block a user