]> git.proxmox.com Git - qemu-server.git/commitdiff
allow reading snapshot config for VM.Audit
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 31 Jan 2020 10:40:37 +0000 (11:40 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 31 Jan 2020 19:25:50 +0000 (20:25 +0100)
VM.Audit can see the current config and the list of snapshots
already, so there is no real reason to disallow
the config of snapshots

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PVE/API2/Qemu.pm

index 89e247729971790629c3da620cd78656dc7d0175..e15c0c366424e6001dc09de7fc805fd428a6a02b 100644 (file)
@@ -3841,7 +3841,7 @@ __PACKAGE__->register_method({
     proxyto => 'node',
     description => "Get snapshot configuration",
     permissions => {
-       check => ['perm', '/vms/{vmid}', [ 'VM.Snapshot', 'VM.Snapshot.Rollback' ], any => 1],
+       check => ['perm', '/vms/{vmid}', [ 'VM.Snapshot', 'VM.Snapshot.Rollback', 'VM.Audit' ], any => 1],
     },
     parameters => {
        additionalProperties => 0,