From 6d048ad6fc1ad8ce4f27b069d304c423a96ff1dd Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Thu, 20 May 2021 12:03:39 +0200 Subject: [PATCH] fix #3402: add Pool.Audit permission add new user "PVEPoolUser" and add Pool.Audit to "PVEAuditor". Signed-off-by: Lorenz Stechauner --- README | 1 + src/PVE/AccessControl.pm | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README b/README index 33643a6..c706e5b 100644 --- a/README +++ b/README @@ -96,6 +96,7 @@ privileges: VM.Config.Options: modify any other VM configuration Pool.Allocate: create/remove/modify a pool. + Pool.Audit: view a pool Datastore.Allocate: create/remove/modify a data store. Datastore.AllocateSpace: allocate space on a datastore diff --git a/src/PVE/AccessControl.pm b/src/PVE/AccessControl.pm index f7d4e78..888875e 100644 --- a/src/PVE/AccessControl.pm +++ b/src/PVE/AccessControl.pm @@ -819,8 +819,12 @@ my $privgroups = { admin => [ 'Pool.Allocate', # create/delete pools ], - user => [], - audit => [], + user => [ + 'Pool.Audit', + ], + audit => [ + 'Pool.Audit', + ], }, }; -- 2.39.2