mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
When the cron module is being used as an API in usermin, leave user switching up to the caller
This commit is contained in:
@@ -19,7 +19,9 @@ use WebminCore;
|
||||
$env_support = $config{'vixie_cron'};
|
||||
if ($module_info{'usermin'}) {
|
||||
$single_user = $remote_user;
|
||||
&switch_to_remote_user();
|
||||
if (!$ENV{'FOREIGN_MODULE_NAME'}) {
|
||||
&switch_to_remote_user();
|
||||
}
|
||||
&create_user_config_dirs();
|
||||
$range_cmd = "$user_module_config_directory/range.pl";
|
||||
$hourly_only = 0;
|
||||
|
||||
Reference in New Issue
Block a user