]> git.proxmox.com Git - pve-manager.git/commitdiff
require Sys.Audit to read cluster status
authorDietmar Maurer <dietmar@proxmox.com>
Mon, 6 Feb 2012 10:23:30 +0000 (11:23 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 6 Feb 2012 10:23:30 +0000 (11:23 +0100)
PVE/API2/Cluster.pm
PVE/API2/Network.pm

index 656f5c7ea99f0f7864d61e8f81b48224fe955be9..354cc1d045f4dd33b89796326c49de7279403acd 100644 (file)
@@ -310,6 +310,7 @@ __PACKAGE__->register_method({
     },
     code => sub {
        my ($param) = @_;
+
        return PVE::Cluster::cfs_read_file('datacenter.cfg');
     }});
 
@@ -440,7 +441,9 @@ __PACKAGE__->register_method({
     path => 'status', 
     method => 'GET',
     description => "Get cluster status informations.",
-    permissions => { user => 'all' },
+    permissions => {
+       check => ['perm', '/', [ 'Sys.Audit' ]],
+    },
     protected => 1,
     parameters => {
        additionalProperties => 0,
index fa3a9348d099f75aaaf72114d88ff34e5de5f5b3..33d770e850fd6b7ab9a759c363a573567aa8dc9a 100644 (file)
@@ -307,6 +307,3 @@ __PACKAGE__->register_method({
 
        return undef;
     }});
-
-
-