X-Git-Url: https://git.proxmox.com/?p=pve-access-control.git;a=blobdiff_plain;f=PVE%2FAccessControl.pm;h=bdadfd2ae58397ddc876c540730d20ed00dc41e6;hp=44fc0aa924849f11780f427c8d891f26ea975dab;hb=0fea3f1677d5830a349cb7407b5a62a2e2ebe0f7;hpb=b54b7474bbd31dfea36a773b848a343d2d13aedd diff --git a/PVE/AccessControl.pm b/PVE/AccessControl.pm index 44fc0aa..bdadfd2 100644 --- a/PVE/AccessControl.pm +++ b/PVE/AccessControl.pm @@ -499,6 +499,17 @@ sub create_roles { create_roles(); +sub create_priv_properties { + my $properties = {}; + foreach my $priv (keys %$valid_privs) { + $properties->{$priv} = { + type => 'boolean', + optional => 1, + }; + } + return $properties; +} + sub role_is_special { my ($role) = @_; return (exists $special_roles->{$role}) ? 1 : 0;