diff --git a/PVE/API2/Cluster.pm b/PVE/API2/Cluster.pm index 656f5c7e..354cc1d0 100644 --- a/PVE/API2/Cluster.pm +++ b/PVE/API2/Cluster.pm @@ -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, diff --git a/PVE/API2/Network.pm b/PVE/API2/Network.pm index fa3a9348..33d770e8 100644 --- a/PVE/API2/Network.pm +++ b/PVE/API2/Network.pm @@ -307,6 +307,3 @@ __PACKAGE__->register_method({ return undef; }}); - - -