]> git.proxmox.com Git - pve-manager.git/commit
fix #3402: add Pool.Audit permission
authorLorenz Stechauner <l.stechauner@proxmox.com>
Thu, 20 May 2021 10:03:40 +0000 (12:03 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 1 Jun 2021 08:31:11 +0000 (10:31 +0200)
commit91db3ececc7e22fc97c69122ac9a61d425b3328e
treeceb1dc59c4558d5a90d4905b8af6a4165b868a74
parent027f67e46db4c271c51511ca056f28eb498447e9
fix #3402: add Pool.Audit permission

everywhere where Pool.Allocate was unnecessarly used it was replaced
with Pool.Audit.

`/cluster/resources` now returns pool infomation for guests only if
the requesting user has the Pool.Audit permission on the pool.

`/pool/` now returns only pools where the requesting user has the
Pool.Audit permission.

Signed-off-by: Lorenz Stechauner <l.stechauner@proxmox.com>
PVE/API2/Cluster.pm
PVE/API2/Pool.pm
PVE/API2/VZDump.pm