]> git.proxmox.com Git - pve-access-control.git/blobdiff - PVE/API2/Role.pm
Add title and print_width fields to properties
[pve-access-control.git] / PVE / API2 / Role.pm
index 80959b0a26d65d8eedac8aa070ecac05a8b18f48..156d3b89bc4015060ae851bd180bd10a7ce2c394 100644 (file)
@@ -15,11 +15,13 @@ use base qw(PVE::RESTHandler);
 register_standard_option('role-id', {
     type => 'string',
     format => 'pve-roleid',
+    title => 'Role ID',
+    print_width => 30
 });
 register_standard_option('role-privs', {
     type => 'string' ,
     format => 'pve-priv-list',
-    optional => 1,
+    optional => 1, title => 'Privileges',
 });
 
 __PACKAGE__->register_method ({
@@ -41,7 +43,7 @@ __PACKAGE__->register_method ({
            properties => {
                roleid => get_standard_option('role-id'),
                privs =>  get_standard_option('role-privs'),
-               special => { type => 'boolean', optional => 1, default => 0 },
+               special => { type => 'boolean', optional => 1, default => 0, title => 'Built-In' },
            },
        },
        links => [ { rel => 'child', href => "{roleid}" } ],