require Sys.Audit to read cluster status
This commit is contained in:
parent
98e84b16d5
commit
449f1b5d2f
@ -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,
|
||||
|
@ -307,6 +307,3 @@ __PACKAGE__->register_method({
|
||||
|
||||
return undef;
|
||||
}});
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user