]> git.proxmox.com Git - pve-manager.git/commit - PVE/API2/Cluster.pm
api: resources: only get guest lock after real access check
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 15 Apr 2021 17:44:59 +0000 (19:44 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 15 Apr 2021 17:45:01 +0000 (19:45 +0200)
commit424c94fee8a0646f50c59ff5ad1e3c0d81edc984
tree29b89b32646cc960e5b94c7094dee6631936b5cc
parentab8ed6f4b0d795e726d7fa6041da0c644da43691
api: resources: only get guest lock after real access check

The guest iteration is slightly confusing as we also handle the
accumulated pool settings there, so we only check the VM.Audit privs.
for a specific VM and skip to the next if the permissions is not
there after those pool handling.

So, move operations which are only required when VM privs. are there
below this check.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/Cluster.pm