method => 'GET',
description => "Pool index.",
permissions => {
- description => "List all pools where you have Pool.Allocate permissions on /pool/<pool>.",
+ description => "List all pools where you have Pool.Allocate or VM.Allocate permissions on /pool/<pool>.",
user => 'all',
},
parameters => {
my $usercfg = $rpcenv->{user_cfg};
foreach my $pool (keys %{$usercfg->{pools}}) {
- next if !$rpcenv->check($authuser, "/pool/$pool", [ 'Pool.Allocate' ], 1);
+ next if !$rpcenv->check_any($authuser, "/pool/$pool", [ 'Pool.Allocate', 'VM.Allocate' ], 1);
my $entry = { poolid => $pool };
my $data = $usercfg->{pools}->{$pool};
path => '{poolid}',
method => 'PUT',
permissions => {
- description => "You aslo need the right to modify permissions on any object you add/delete.",
+ description => "You also need the right to modify permissions on any object you add/delete.",
check => ['perm', '/pool/{poolid}', ['Pool.Allocate']],
},
description => "Update pool data.",
+pve-manager (2.1-8) unstable; urgency=low
+
+ * also list pools with VM.Allocate permissions
+
+ -- Proxmox Support Team <support@proxmox.com> Wed, 30 May 2012 11:20:45 +0200
+
pve-manager (2.1-7) unstable; urgency=low
* fix vzdump --exclude-path (allow to read value from vzdump.conf)