mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-01 08:05:24 +00:00
api/resume: make nocheck root-only
this is only used for migration via 'qm mtunnel', regular users should never need to resume a VM that does not logically belong to the node it is running on Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
90ff65b63a
commit
4fb85adc65
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user