> +__PACKAGE__->register_method({ > + name => 'template', > + path => '{vmid}/template', > + method => 'POST', > + protected => 1, > + proxyto => 'node', > + description => "Create a Template.", > + permissions => { > + check => ['perm', '/vms/{vmid}', [ 'VM.Template' ]], > + },
What is 'VM.Template'? I guess we need to have the same permissions as on create instead. If the user can create/delete the VM and all Storage volumes, he is also allowed to create the template. Or what exactly was your thinking? _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel