]> git.proxmox.com Git - pve-access-control.git/blobdiff - PVE/API2/User.pm
allow to delete all groups
[pve-access-control.git] / PVE / API2 / User.pm
index 6272cadbb1d366816ab86cec30e3ff6411cb1714..a9198699f97bcd1038c3d4dbaa833d3217c8e661 100644 (file)
@@ -247,7 +247,7 @@ __PACKAGE__->register_method ({
                $usercfg->{users}->{$username}->{expire} = $param->{expire} if defined($param->{expire});
 
                PVE::AccessControl::delete_user_group($username, $usercfg) 
-                   if (!$param->{append} && $param->{groups});
+                   if (!$param->{append} && defined($param->{groups}));
 
                if ($param->{groups}) {
                    foreach my $group (split_list($param->{groups})) {