diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index 8dfd1a53..91fdf1ad 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -1224,7 +1224,8 @@ __PACKAGE__->register_method({ my $vmid = extract_param($param, 'vmid'); - raise_param_exc({ force => "Only root may use this option." }) if $user ne 'root@pam'; + raise_param_exc({ force => "Only root may use this option." }) + if $param->{force} && $user ne 'root@pam'; # test if VM exists PVE::QemuServer::load_config($vmid);