]> git.proxmox.com Git - pve-storage.git/commit
api: disk list: allow if an audit permission for the node is present
authorFabian Ebner <f.ebner@proxmox.com>
Wed, 10 Mar 2021 09:26:27 +0000 (10:26 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 11 Mar 2021 13:16:21 +0000 (14:16 +0100)
commit1d6c548889f33950f0d255daaa4d795608999e92
tree0c8cf0ebe23fae3f750160ef4827aa255ef122e4
parent6c460330bb858240df2f6ae56eee0ec69ed94265
api: disk list: allow if an audit permission for the node is present

as that seems to be the more natural permission path for listing a nodes local
disks. For backwards compatibility, the old permission check has to be kept
(relevant with propagate=0).

This API call was originally part of the Ceph API and got copied here later,
which might explain the current permission check.

In the UI, the Disk panel is visible with a node audit permission, but the API
call itself failed without the '/' audit permission.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/API2/Disks.pm