mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
Ensure auto-whitelist is read as the correct user
This commit is contained in:
@@ -21,12 +21,16 @@ endpwent();
|
||||
foreach $u (@users) {
|
||||
next if (!&can_edit_awl($u));
|
||||
print "doing $u<br>\n";
|
||||
&open_auto_whitelist_dbm($u) || next;
|
||||
foreach $k (keys %awl) {
|
||||
delete($awl{$k});
|
||||
$count++;
|
||||
}
|
||||
&close_auto_whitelist_dbm();
|
||||
&eval_as_unix_user($u->[0],
|
||||
sub
|
||||
{
|
||||
&open_auto_whitelist_dbm($u) || next;
|
||||
foreach $k (keys %awl) {
|
||||
delete($awl{$k});
|
||||
$count++;
|
||||
}
|
||||
&close_auto_whitelist_dbm();
|
||||
});
|
||||
$ucount++;
|
||||
}
|
||||
endpwent();
|
||||
|
||||
Reference in New Issue
Block a user