diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index 1e475aac..218ee7cb 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -2702,11 +2702,8 @@ __PACKAGE__->register_method({ proxyto => 'node', description => "Create a Template.", permissions => { - description => "You need 'VM.Allocate' permissions on /vms/{vmid} or on the VM pool /pool/{pool}.", - check => [ 'or', - [ 'perm', '/vms/{vmid}', ['VM.Allocate']], - [ 'perm', '/pool/{pool}', ['VM.Allocate'], require_param => 'pool'], - ], + description => "You need 'VM.Allocate' permissions on /vms/{vmid}", + check => [ 'perm', '/vms/{vmid}', ['VM.Allocate']], }, parameters => { additionalProperties => 0, @@ -2765,6 +2762,4 @@ __PACKAGE__->register_method({ return undef; }}); - - 1;