mirror of
https://git.proxmox.com/git/pve-access-control
synced 2025-08-14 02:44:56 +00:00
add special test for pool
This commit is contained in:
parent
dee1c8829a
commit
7a7a517a52
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user