mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-07 03:01:00 +00:00
remove wrong permission check
This commit is contained in:
parent
9cd0784249
commit
03c2d0ad6f
@ -2305,9 +2305,6 @@ __PACKAGE__->register_method({
|
|||||||
protected => 1,
|
protected => 1,
|
||||||
proxyto => 'node',
|
proxyto => 'node',
|
||||||
description => "Create a Template.",
|
description => "Create a Template.",
|
||||||
permissions => {
|
|
||||||
check => ['perm', '/vms/{vmid}', [ 'VM.Template' ]],
|
|
||||||
},
|
|
||||||
parameters => {
|
parameters => {
|
||||||
additionalProperties => 0,
|
additionalProperties => 0,
|
||||||
properties => {
|
properties => {
|
||||||
@ -2342,7 +2339,8 @@ __PACKAGE__->register_method({
|
|||||||
|
|
||||||
PVE::QemuServer::check_lock($conf);
|
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 {
|
my $realcmd = sub {
|
||||||
PVE::QemuServer::template_create($vmid, $conf, $disk);
|
PVE::QemuServer::template_create($vmid, $conf, $disk);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user