]> git.proxmox.com Git - pve-cluster.git/commitdiff
api: allow cluster wide sys auditors to get join info
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 30 Apr 2018 12:40:48 +0000 (14:40 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 2 May 2018 08:18:10 +0000 (10:18 +0200)
add same permissions as the GET cluster config call has.

Else the WebUI shows 'Standalone Node' for clustered nodes if the
user is not root but has audit rights.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
data/PVE/API2/ClusterConfig.pm

index ad7e8c6561cfa0a4488a55d494d34c808cfcf98f..0534e6aeed52306035136fe6ddc25fd4f64062d0 100644 (file)
@@ -399,6 +399,9 @@ __PACKAGE__->register_method ({
 __PACKAGE__->register_method ({
     name => 'join_info',
     path => 'join',
+    permissions => {
+       check => ['perm', '/', [ 'Sys.Audit' ]],
+    },
     method => 'GET',
     description => "Get information needed to join this cluster over the connected node.",
     parameters => {