5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-01-13 13:17:55 +03:00

remove wrong permission check

This commit is contained in:
Dietmar Maurer 2013-02-15 08:45:42 +01:00
parent 9cd0784249
commit 03c2d0ad6f

View File

@ -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);
};