mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-12 13:46:57 +00:00
VM.Snapshot.Rollback privilege added
VM.Snapshot.Rollback privilege added Signed-off-by: Matthias Urban <matthias.urban@pure-systems.com>
This commit is contained in:
parent
6cb0144ae3
commit
c268337d93
@ -3342,7 +3342,7 @@ __PACKAGE__->register_method({
|
|||||||
proxyto => 'node',
|
proxyto => 'node',
|
||||||
description => "Get snapshot configuration",
|
description => "Get snapshot configuration",
|
||||||
permissions => {
|
permissions => {
|
||||||
check => ['perm', '/vms/{vmid}', [ 'VM.Snapshot' ]],
|
check => ['perm', '/vms/{vmid}', [ 'VM.Snapshot', 'VM.Snapshot.Rollback' ], any => 1],
|
||||||
},
|
},
|
||||||
parameters => {
|
parameters => {
|
||||||
additionalProperties => 0,
|
additionalProperties => 0,
|
||||||
@ -3381,7 +3381,7 @@ __PACKAGE__->register_method({
|
|||||||
proxyto => 'node',
|
proxyto => 'node',
|
||||||
description => "Rollback VM state to specified snapshot.",
|
description => "Rollback VM state to specified snapshot.",
|
||||||
permissions => {
|
permissions => {
|
||||||
check => ['perm', '/vms/{vmid}', [ 'VM.Snapshot' ]],
|
check => ['perm', '/vms/{vmid}', [ 'VM.Snapshot', 'VM.Snapshot.Rollback' ], any => 1],
|
||||||
},
|
},
|
||||||
parameters => {
|
parameters => {
|
||||||
additionalProperties => 0,
|
additionalProperties => 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user