mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Safe mode users cannot edit configs
This commit is contained in:
@@ -388,6 +388,7 @@ if ($in{'safe'}) {
|
||||
if (!%macl && $safe) {
|
||||
%macl = %$safe;
|
||||
$macl{'_safe'} = 1;
|
||||
$macl{'noconfig'} = 1;
|
||||
&save_module_acl(\%macl, $in{'name'}, $m);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4052,6 +4052,7 @@ elsif ($u ne '') {
|
||||
# read and apply them
|
||||
if ($rv{'_safe'}) {
|
||||
&read_file_cached("$mdir/safeacl", \%rv);
|
||||
$rv{'noconfig'} = 1;
|
||||
}
|
||||
|
||||
if ($tconfig{'preload_functions'}) {
|
||||
|
||||
Reference in New Issue
Block a user