]> git.proxmox.com Git - pve-container.git/commitdiff
fix #3635: fix overly-strict pool permission check on create
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 22 Oct 2021 06:44:13 +0000 (08:44 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 11 Feb 2022 07:28:14 +0000 (08:28 +0100)
we do not need Permissions.Modify on the pool as the actual required
check for 'VM.Allocate' for that pool is already handled below, so
remove it like we did in qemu-server 4fc5242 ("fix pool permission
checks on create")

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by: Mira Limbeck <m.limbeck@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/API2/LXC.pm

index 61eaaf7c24df37d6650989549924fed69a89efee..b5d0b289ee0b9cc01c69ee9b097b870bdfdb50df 100644 (file)
@@ -245,7 +245,6 @@ __PACKAGE__->register_method({
        my $pool = extract_param($param, 'pool');
        if (defined($pool)) {
            $rpcenv->check_pool_exist($pool);
-           $rpcenv->check_perm_modify($authuser, "/pool/$pool");
        }
 
        if ($rpcenv->check($authuser, "/vms/$vmid", ['VM.Allocate'], 1)) {