X-Git-Url: https://git.proxmox.com/?p=pve-access-control.git;a=blobdiff_plain;f=PVE%2FAPI2%2FRole.pm;h=83e4a9d4a9ab20b1efce78c4b433f6db3e0f72d2;hp=80959b0a26d65d8eedac8aa070ecac05a8b18f48;hb=0fea3f1677d5830a349cb7407b5a62a2e2ebe0f7;hpb=b54b7474bbd31dfea36a773b848a343d2d13aedd diff --git a/PVE/API2/Role.pm b/PVE/API2/Role.pm index 80959b0..83e4a9d 100644 --- a/PVE/API2/Role.pm +++ b/PVE/API2/Role.pm @@ -163,9 +163,7 @@ __PACKAGE__->register_method ({ returns => { type => "object", additionalProperties => 0, - properties => { - privs => get_standard_option('role-privs'), - }, + properties => PVE::AccessControl::create_priv_properties(), }, code => sub { my ($param) = @_;