fix #1998: correct return properties for read_role
[pve-access-control.git] / PVE / API2 / Role.pm
index 80959b0..83e4a9d 100644 (file)
@@ -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) = @_;