]> git.proxmox.com Git - pve-access-control.git/blobdiff - PVE/API2/Group.pm
remove debug message
[pve-access-control.git] / PVE / API2 / Group.pm
index 435e0190890ec4a698b253f26a539631b60037fa..883c45dde482b6c2c73fd1e1297a119a9f0c8e73 100644 (file)
@@ -34,7 +34,7 @@ __PACKAGE__->register_method ({
     method => 'GET',
     description => "Group index.",
     permissions => { 
-       description => "The returned list is restricted to groups where you have 'User.Add' or 'Sys.Audit' permissions on '/access', or 'User.Add' on /access/groups/<group>.",
+       description => "The returned list is restricted to groups where you have 'User.Allocate' or 'Sys.Audit' permissions on '/access', or 'User.Allocate' on /access/groups/<group>.",
        user => 'all',
     },
     parameters => {
@@ -60,7 +60,7 @@ __PACKAGE__->register_method ({
        my $usercfg = cfs_read_file("user.cfg");
        my $authuser = $rpcenv->get_user();
 
-       my $privs = [ 'User.Add', 'Sys.Audit' ];
+       my $privs = [ 'User.Allocate', 'Sys.Audit' ];
        my $allow = $rpcenv->check_any($authuser, "/access", $privs, 1);
        my $allowed_groups = $rpcenv->filter_groups($authuser, $privs, 1);