require Sys.Audit to read cluster status

This commit is contained in:
Dietmar Maurer 2012-02-06 11:23:30 +01:00
parent 98e84b16d5
commit 449f1b5d2f
2 changed files with 4 additions and 4 deletions

View 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,

View File

@ -307,6 +307,3 @@ __PACKAGE__->register_method({
return undef;
}});