From 65cbfe79e49638c10acce4354182dcaeae96e74d Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Sun, 20 Nov 2022 13:27:27 +0100 Subject: [PATCH] fix #4245: api: node HW: allow to get PCI info with Sys.Audit on / keep Sys.Modify only for backward compat, as it does not make really much sense to ask for that on an informative GET call. Signed-off-by: Thomas Lamprecht --- PVE/API2/Hardware/PCI.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PVE/API2/Hardware/PCI.pm b/PVE/API2/Hardware/PCI.pm index d9c5b37e..a3a689bf 100644 --- a/PVE/API2/Hardware/PCI.pm +++ b/PVE/API2/Hardware/PCI.pm @@ -20,7 +20,7 @@ __PACKAGE__->register_method ({ protected => 1, proxyto => "node", permissions => { - check => ['perm', '/', ['Sys.Modify']], + check => ['perm', '/', ['Sys.Audit', 'Sys.Modify'], any => 1], }, parameters => { additionalProperties => 0, @@ -177,7 +177,7 @@ __PACKAGE__->register_method ({ protected => 1, proxyto => "node", permissions => { - check => ['perm', '/', ['Sys.Modify']], + check => ['perm', '/', ['Sys.Audit', 'Sys.Modify'], any => 1], }, parameters => { additionalProperties => 0,