Safe mode users cannot edit configs

This commit is contained in:
Jamie Cameron
2019-12-08 08:29:36 -08:00
parent 9f409d725d
commit 192b3504ce
2 changed files with 2 additions and 0 deletions

View File

@@ -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);
}
}

View File

@@ -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'}) {