mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-05-29 23:08:41 +00:00
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 {
|
code => sub {
|
||||||
my ($param) = @_;
|
my ($param) = @_;
|
||||||
|
|
||||||
return PVE::Cluster::cfs_read_file('datacenter.cfg');
|
return PVE::Cluster::cfs_read_file('datacenter.cfg');
|
||||||
}});
|
}});
|
||||||
|
|
||||||
@ -440,7 +441,9 @@ __PACKAGE__->register_method({
|
|||||||
path => 'status',
|
path => 'status',
|
||||||
method => 'GET',
|
method => 'GET',
|
||||||
description => "Get cluster status informations.",
|
description => "Get cluster status informations.",
|
||||||
permissions => { user => 'all' },
|
permissions => {
|
||||||
|
check => ['perm', '/', [ 'Sys.Audit' ]],
|
||||||
|
},
|
||||||
protected => 1,
|
protected => 1,
|
||||||
parameters => {
|
parameters => {
|
||||||
additionalProperties => 0,
|
additionalProperties => 0,
|
||||||
|
@ -307,6 +307,3 @@ __PACKAGE__->register_method({
|
|||||||
|
|
||||||
return undef;
|
return undef;
|
||||||
}});
|
}});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user