From 03c2d0ad6fc4249c02d9c386a592df52e78c7c34 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Fri, 15 Feb 2013 08:45:42 +0100 Subject: [PATCH] remove wrong permission check --- PVE/API2/Qemu.pm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index 924af264..cabe2cf4 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -2305,9 +2305,6 @@ __PACKAGE__->register_method({ protected => 1, proxyto => 'node', description => "Create a Template.", - permissions => { - check => ['perm', '/vms/{vmid}', [ 'VM.Template' ]], - }, parameters => { additionalProperties => 0, properties => { @@ -2342,7 +2339,8 @@ __PACKAGE__->register_method({ PVE::QemuServer::check_lock($conf); - die "you can't convert a template to a template" if PVE::QemuServer::is_template($conf) && !$disk; + die "you can't convert a template to a template" + if PVE::QemuServer::is_template($conf) && !$disk; my $realcmd = sub { PVE::QemuServer::template_create($vmid, $conf, $disk); };