]> git.proxmox.com Git - pve-access-control.git/commitdiff
api/users: mark tokens and groups as optional in return schema
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 29 Jan 2020 20:21:15 +0000 (21:21 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 29 Jan 2020 20:21:58 +0000 (21:21 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/User.pm

index 37bc6c078dd9030f344a7bec75f8d9a68557d377..311f913853d9a79747b661131597006512f12350 100644 (file)
@@ -294,12 +294,14 @@ __PACKAGE__->register_method ({
            keys => get_standard_option('user-keys'),
            groups => {
                type => 'array',
+               optional => 1,
                items => {
                    type => 'string',
                    format => 'pve-groupid',
                },
            },
            tokens => {
+               optional => 1,
                type => 'object',
            },
        },