mirror of
https://github.com/webmin/webmin.git
synced 2026-06-22 12:10: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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user