[pve-devel] [PATCH 01/13] add template_create
Alexandre DERUMIER
aderumier at odiso.com
Fri Feb 15 08:36:46 CET 2013
ok, you are right.
To be honest, I'm a bit lost with permissions as I'm mainly only using pve-manager as root
Feel free to correct my code !
----- Mail original -----
De: "Dietmar Maurer" <dietmar at proxmox.com>
À: "Dietmar Maurer" <dietmar at proxmox.com>, "Alexandre Derumier" <aderumier at odiso.com>, pve-devel at pve.proxmox.com
Envoyé: Vendredi 15 Février 2013 07:48:17
Objet: RE: [pve-devel] [PATCH 01/13] add template_create
> > + 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.
Oh, just noticed that this is basically an update, so we need to do the same checks we do for updates.
More information about the pve-devel
mailing list