mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-02-03 13:47:15 +03:00
fix for resize: remove useless permission checks
This commit is contained in:
parent
614e3941a3
commit
3b2773f606
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user