]> git.proxmox.com Git - pve-access-control.git/blobdiff - PVE/RPCEnvironment.pm
add special test for pool
[pve-access-control.git] / PVE / RPCEnvironment.pm
index 31692ce2a027f37f9f7233f6568c1dc8f1d56b71..8750e735ed0855ada738c0d0817ee091b669f813 100644 (file)
@@ -309,6 +309,8 @@ sub check_perm_modify {
        push @$testperms, 'Datastore.Allocate';
     } elsif ($path =~ m|^/vms/.+$|) {
        push @$testperms, 'VM.Allocate';
+    } elsif ($path =~ m|^/pool/.+$|) {
+       push @$testperms, 'Pool.Allocate';
     }
 
     return $self->check_any($username, $path, $testperms, $noerr);