allow to delete all groups

This commit is contained in:
Dietmar Maurer 2012-01-12 09:27:32 +01:00
parent cb6f2f93ed
commit e652173849

View File

@ -247,7 +247,7 @@ __PACKAGE__->register_method ({
$usercfg->{users}->{$username}->{expire} = $param->{expire} if defined($param->{expire}); $usercfg->{users}->{$username}->{expire} = $param->{expire} if defined($param->{expire});
PVE::AccessControl::delete_user_group($username, $usercfg) PVE::AccessControl::delete_user_group($username, $usercfg)
if (!$param->{append} && $param->{groups}); if (!$param->{append} && defined($param->{groups}));
if ($param->{groups}) { if ($param->{groups}) {
foreach my $group (split_list($param->{groups})) { foreach my $group (split_list($param->{groups})) {