From 657533535d594344bb46f98327f370653f6fb330 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 5 Sep 2013 07:41:40 +0200 Subject: [PATCH] Allow VMAdmin to delete disk with Datastore.AllocateSpace permissions Previosly, a VMAdmin/DatastoreUser was able to add/create new disks, but unable to remove them. --- PVE/API2/Qemu.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index 72b88a58..bf16bf23 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -697,7 +697,7 @@ my $vmconfig_delete_option = sub { my $drive = PVE::QemuServer::parse_drive($opt, $conf->{$opt}); if (my $sid = &$test_deallocate_drive($storecfg, $vmid, $opt, $drive, $force)) { - $rpcenv->check($authuser, "/storage/$sid", ['Datastore.Allocate']); + $rpcenv->check($authuser, "/storage/$sid", ['Datastore.AllocateSpace']); } }