X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=PVE%2FAPI2%2FGroup.pm;h=373e8e2da4bebdd50ea8dbdb971262592eda7c30;hb=39c85db819dc564e89270f6f6d15dbce79d0540b;hp=883c45dde482b6c2c73fd1e1297a119a9f0c8e73;hpb=7b6f1fd306c17d38bbdf21edac7e930bbe2656d4;p=pve-access-control.git diff --git a/PVE/API2/Group.pm b/PVE/API2/Group.pm index 883c45d..373e8e2 100644 --- a/PVE/API2/Group.pm +++ b/PVE/API2/Group.pm @@ -148,10 +148,10 @@ __PACKAGE__->register_method ({ die "group '$group' does not exist\n" if !$data; - $data->{comment} = $param->{comment} if $param->{comment}; + $data->{comment} = $param->{comment} if defined($param->{comment}); cfs_write_file("user.cfg", $usercfg); - }, "create group failed"); + }, "update group failed"); return undef; }});