]> git.proxmox.com Git - qemu-server.git/commitdiff
Allow VMAdmin to delete disk with Datastore.AllocateSpace permissions
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 5 Sep 2013 05:41:40 +0000 (07:41 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 5 Sep 2013 05:41:40 +0000 (07:41 +0200)
Previosly, a VMAdmin/DatastoreUser was able to add/create new disks, but
unable to remove them.

PVE/API2/Qemu.pm

index 72b88a58bf7ee4ca4bc0b98caf2390a82da41e21..bf16bf23c2c4b435ddfe5e410f04142a82251dd9 100644 (file)
@@ -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']);
        }
     }