5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-01-24 02:04:10 +03:00

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.
This commit is contained in:
Dietmar Maurer 2013-09-05 07:41:40 +02:00
parent 2dc23d7253
commit 657533535d

View 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']);
}
}