]> git.proxmox.com Git - pve-guest-common.git/commit
guest helpers: avoid checking user/token if one can abort all tasks
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 17 Apr 2024 15:30:52 +0000 (17:30 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 17 Apr 2024 15:30:53 +0000 (17:30 +0200)
commit1d06c1bf957fb869f292702d5651a58b8ed1c41b
tree31621525db298368daa08e1bcb14975339095fd1
parent253a2ea93d5ae1b8a3f2397dd88178727c6a6995
guest helpers: avoid checking user/token if one can abort all tasks

If the user can already stop all tasks there is no point in spending
some work on every task to check if the user could also stop if
without those powerful permissions.

To avoid to much indentation rework the filter to an early-next style.

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