]> git.proxmox.com Git - pmg-api.git/commitdiff
fix #1876: allow node status for admin/manager/auditors
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 14 Sep 2018 12:40:40 +0000 (14:40 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 17 Sep 2018 07:29:42 +0000 (09:29 +0200)
users can already see the status for the local host
via /config/cluster/status or rrddata on all nodes
so allow them to directly get the status via /nodes/nodename/status

this fixes the permission error on the dashboard in clustered setups

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PMG/API2/Nodes.pm

index bdb456f57a1f174c13764b7fc5ce3e6e09c9b71f..0a578b2a8058321ea8b934e045f5589aba1599f8 100644 (file)
@@ -541,6 +541,7 @@ __PACKAGE__->register_method({
     method => 'GET',
     description => "Read server status. This is used by the cluster manager to test the node health.",
     proxyto => 'node',
+    permissions => { check => [ 'admin', 'qmanager', 'audit' ] },
     protected => 1,
     parameters => {
        additionalProperties => 0,