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:
parent
9cd0784249
commit
03c2d0ad6f
@ -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);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user