[pve-devel] applied: [PATCH manager] ui: qemu: hardware view: fix hwrng cap check for unprivileged users
Thomas Lamprecht
t.lamprecht at proxmox.com
Tue Apr 8 20:27:18 CEST 2025
On Tue, 08 Apr 2025 18:38:56 +0200, Friedrich Weber wrote:
> Currently, as an unprivileged user with role PVEVMUser the GUI breaks
> with an error after navigating to a VM's hardware tab. The reason is
> that the frontend checks the GUI capabilites via `caps.mapping.hwrng`,
> but `caps.mapping` does not actually have a property called `hwrng`.
>
> The reason this does not trigger for more privileged users is that all
> expressions involving `caps.mapping.hwrng` are short-circuited if the
> user has privilege `VM.Config.Type`, so `caps.mapping.hwrng` is never
> evaluated.
>
> [...]
Applied, with two commit message typos fixed, thanks!
[1/1] ui: qemu: hardware view: fix hwrng cap check for unprivileged users
commit: c7b75cc57f4ad2c44d4876418efef8b6eadd43ce
More information about the pve-devel
mailing list