]> git.proxmox.com Git - qemu-server.git/commitdiff
VM.Snapshot.Rollback privilege added
authorMatthias Urban <matthias.urban@pure-systems.com>
Wed, 13 Sep 2017 10:30:37 +0000 (12:30 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 22 Sep 2017 07:26:55 +0000 (09:26 +0200)
VM.Snapshot.Rollback privilege added

Signed-off-by: Matthias Urban <matthias.urban@pure-systems.com>
PVE/API2/Qemu.pm

index 66ffc078cd8bda1a5710ff9e31465c8813000556..869eb8c109aeb87883e43b0cbc2483b5adf53a2a 100644 (file)
@@ -3342,7 +3342,7 @@ __PACKAGE__->register_method({
     proxyto => 'node',
     description => "Get snapshot configuration",
     permissions => {
-       check => ['perm', '/vms/{vmid}', [ 'VM.Snapshot' ]],
+       check => ['perm', '/vms/{vmid}', [ 'VM.Snapshot', 'VM.Snapshot.Rollback' ], any => 1],
     },
     parameters => {
        additionalProperties => 0,
@@ -3381,7 +3381,7 @@ __PACKAGE__->register_method({
     proxyto => 'node',
     description => "Rollback VM state to specified snapshot.",
     permissions => {
-       check => ['perm', '/vms/{vmid}', [ 'VM.Snapshot' ]],
+       check => ['perm', '/vms/{vmid}', [ 'VM.Snapshot', 'VM.Snapshot.Rollback' ], any => 1],
     },
     parameters => {
        additionalProperties => 0,