mirror of
https://github.com/webmin/webmin.git
synced 2026-06-22 04:00:28 +01:00
Check permission to delete home dirs in batch operations
This commit is contained in:
@@ -392,7 +392,8 @@ foreach $line (split(/[\r\n]+/, $data)) {
|
||||
# Delete his home directory
|
||||
if ($in{'delhome'} &&
|
||||
$user->{'home'} &&
|
||||
$user->{'home'} !~ /^\/+$/) {
|
||||
$user->{'home'} !~ /^\/+$/ &&
|
||||
$access{'delhome'}) {
|
||||
&delete_home_directory($user);
|
||||
}
|
||||
|
||||
|
||||
@@ -222,7 +222,8 @@ else {
|
||||
}
|
||||
&unlock_user_files();
|
||||
|
||||
if ($in{'delhome'} && $user->{'home'} !~ /^\/+$/) {
|
||||
if ($in{'delhome'} && $user->{'home'} !~ /^\/+$/ &&
|
||||
$access{'delhome'}) {
|
||||
print "$text{'udel_home'}<br>\n";
|
||||
&lock_file($user->{'home'});
|
||||
&delete_home_directory($user);
|
||||
|
||||
Reference in New Issue
Block a user