X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=PVE%2FAPI2%2FQemu.pm;h=7ffc5381f085f0f944331377113c1517c1b42124;hb=4fb85adc656197e999b37d0de2feeea303c5485c;hp=ec4c18cde6e04810e5ef7acd87e3bd0cb90737ba;hpb=90ff65b63a001e81fc68ce99bc3b0dd53ed04b47;p=qemu-server.git diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index ec4c18c..7ffc538 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -2589,6 +2589,8 @@ __PACKAGE__->register_method({ if $skiplock && $authuser ne 'root@pam'; my $nocheck = extract_param($param, 'nocheck'); + raise_param_exc({ nocheck => "Only root may use this option." }) + if $nocheck && $authuser ne 'root@pam'; my $to_disk_suspended; eval {