[pve-devel] [PATCH pve-access-control 1/1] rpcenv: compute_api_permission : add default root dc.Sys.Modify
Alexandre Derumier
aderumier at odiso.com
Mon Mar 27 12:18:20 CEST 2023
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
src/PVE/RPCEnvironment.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/PVE/RPCEnvironment.pm b/src/PVE/RPCEnvironment.pm
index 8586938..0de746a 100644
--- a/src/PVE/RPCEnvironment.pm
+++ b/src/PVE/RPCEnvironment.pm
@@ -186,7 +186,7 @@ sub compute_api_permission {
storage => qr/Datastore\.|Permissions\.Modify/,
nodes => qr/Sys\.|Permissions\.Modify/,
sdn => qr/SDN\.|Permissions\.Modify/,
- dc => qr/Sys\.Audit|SDN\./,
+ dc => qr/Sys\.Audit|Sys\.Modify|SDN\./,
};
map { $res->{$_} = {} } keys %$priv_re_map;
--
2.30.2
More information about the pve-devel
mailing list