mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-06 06:47:33 +00:00
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 <t.lamprecht@proxmox.com>
This commit is contained in:
parent
12f011de4e
commit
65cbfe79e4
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user