]> git.proxmox.com Git - novnc-pve.git/commit
suppress unauthorized error from status query for VM.Console only user
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 7 Oct 2022 08:44:58 +0000 (10:44 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 10 Oct 2022 08:43:02 +0000 (10:43 +0200)
commit36b6bb616e156fed07f06264962fc678cdbd0f99
treeaed1bae4790e322f62d908fb0bf0292ef69a055d
parent4eff717ce3b774416bd6a446bca32fd562120b62
suppress unauthorized error from status query for VM.Console only user

We now query the guest status before starting the console to provide
a start button if it's not yet running, but that requires VM.Audit
privileges, so more than just VM.Console on the guest.

So, ignore a `403 Forbidden` response, as that just means we cannot
query the VM info to see if it's running, rather just continue
connecting.

See: https://forum.proxmox.com/threads/116176/
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
 [ T: reworked commit message ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
debian/patches/0018-show-start-button-on-not-running-vm-ct.patch