]> git.proxmox.com Git - pve-access-control.git/blobdiff - PVE/API2/ACL.pm
Add title and print_width fields to properties
[pve-access-control.git] / PVE / API2 / ACL.pm
index 3e42ac06d8a9a85131a00fc62b6a02997689203d..866e0237459541ad6c9b246c1cd12eb22f27d21d 100644 (file)
@@ -17,11 +17,13 @@ use base qw(PVE::RESTHandler);
 register_standard_option('acl-propagate', {
     description => "Allow to propagate (inherit) permissions.",
     type => 'boolean',
+    title => 'Propagate',
     optional => 1,
     default => 1,
 });
 register_standard_option('acl-path', {
     description => "Access control path",
+    title => 'Path',
     type => 'string',
 });
 
@@ -46,9 +48,9 @@ __PACKAGE__->register_method ({
            properties => {
                propagate => get_standard_option('acl-propagate'),
                path => get_standard_option('acl-path'),
-               type => { type => 'string', enum => ['user', 'group'] },
-               ugid => { type => 'string' },
-               roleid => { type => 'string' },
+               type => { type => 'string', title => 'Type', enum => ['user', 'group'] },
+               ugid => { type => 'string', title => 'ID' },
+               roleid => { type => 'string', title => 'Role' },
            },
        },
     },