mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-07 08:30:39 +00: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
|
if (PVE::QemuServer::drive_is_cdrom($drive)) { #cdrom
|
||||||
die "you can't resize a cdrom";
|
die "you can't resize a cdrom";
|
||||||
} else {
|
|
||||||
$rpcenv->check_vm_perm($authuser, $vmid, undef, ['VM.Config.Disk']);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($conf->{$opt}) {
|
if ($conf->{$opt}) {
|
||||||
@ -1798,7 +1796,7 @@ __PACKAGE__->register_method({
|
|||||||
proxyto => 'node',
|
proxyto => 'node',
|
||||||
description => "extend volume size.",
|
description => "extend volume size.",
|
||||||
permissions => {
|
permissions => {
|
||||||
check => ['perm', '/vms/{vmid}', $vm_config_perm_list, any => 1],
|
check => ['perm', '/vms/{vmid}', [ 'VM.Config.Disk' ]],
|
||||||
},
|
},
|
||||||
parameters => {
|
parameters => {
|
||||||
additionalProperties => 0,
|
additionalProperties => 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user