From 3b2773f606afc4aa93e6792ae341459c5b56a1fe Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Wed, 8 Aug 2012 07:36:51 +0200 Subject: [PATCH] fix for resize: remove useless permission checks --- PVE/API2/Qemu.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index 27d589fc..3bedcd48 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -735,8 +735,6 @@ my $vmconfig_resize_disk = sub { if (PVE::QemuServer::drive_is_cdrom($drive)) { #cdrom die "you can't resize a cdrom"; - } else { - $rpcenv->check_vm_perm($authuser, $vmid, undef, ['VM.Config.Disk']); } if ($conf->{$opt}) { @@ -1798,7 +1796,7 @@ __PACKAGE__->register_method({ proxyto => 'node', description => "extend volume size.", permissions => { - check => ['perm', '/vms/{vmid}', $vm_config_perm_list, any => 1], + check => ['perm', '/vms/{vmid}', [ 'VM.Config.Disk' ]], }, parameters => { additionalProperties => 0,