From c27eb24526c656137ca6f2032248dcd7e9e38ea0 Mon Sep 17 00:00:00 2001 From: Alexandre Derumier Date: Mon, 27 Mar 2023 12:18:20 +0200 Subject: [PATCH] rpcenv: api permission heuristic: query Sys.Modify for root ACL-path Ensures that we can use this in the capabilities heuristic check in the web UI Signed-off-by: Alexandre Derumier --- 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;