]> git.proxmox.com Git - pve-manager.git/commit
ui: qemu/HardwareView: fix CDRom permission checkss
authorAaron Lauterer <a.lauterer@proxmox.com>
Fri, 12 Feb 2021 15:57:51 +0000 (16:57 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 19 Feb 2021 16:22:30 +0000 (17:22 +0100)
commita1e25c47f30a8205f4e497d843ba557d1919256d
tree60f8e7f56efa393732f26afd90fbb8d5583c4688
parent96da47ba519a10a03159af51571dc32aaf304eca
ui: qemu/HardwareView: fix CDRom permission checkss

There are several types of drives that use the same config keys. Most
notably CDRom and regular VM disks (EFI and cloudinit exist as well).

Since there is a dedicated permission for CDRom drives we need to check
permissions in more detail, depending on what type of drive it actually
is for things like the edit, remove and Add -> CDRom buttons.

The permission check in the row definition itself which only checked for
'VM.Config.Disk' permissions (never_delete) had to be removed and finer
grained checks added for the individual buttons. This also meant a bit
of reshuffling in the checks what kind of disk the current one is.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/qemu/HardwareView.js