From: Dietmar Maurer Date: Mon, 21 Jul 2014 07:33:18 +0000 (+0200) Subject: Firewall/Cluster: add permissions X-Git-Url: https://git.proxmox.com/?p=pve-firewall.git;a=commitdiff_plain;h=0ec568419a0dea71837619013fef92cfb84948c4 Firewall/Cluster: add permissions --- diff --git a/src/PVE/API2/Firewall/Cluster.pm b/src/PVE/API2/Firewall/Cluster.pm index e8b44d2..0f6b98c 100644 --- a/src/PVE/API2/Firewall/Cluster.pm +++ b/src/PVE/API2/Firewall/Cluster.pm @@ -106,6 +106,9 @@ __PACKAGE__->register_method({ path => 'options', method => 'GET', description => "Get Firewall options.", + permissions => { + check => ['perm', '/', [ 'Sys.Audit' ]], + }, parameters => { additionalProperties => 0, }, @@ -129,6 +132,9 @@ __PACKAGE__->register_method({ method => 'PUT', description => "Set Firewall options.", protected => 1, + permissions => { + check => ['perm', '/', [ 'Sys.Modify' ]], + }, parameters => { additionalProperties => 0, properties => &$add_option_properties({ @@ -176,6 +182,7 @@ __PACKAGE__->register_method({ path => 'macros', method => 'GET', description => "List available macros", + permissions => { user => 'all' }, parameters => { additionalProperties => 0, }, @@ -214,6 +221,9 @@ __PACKAGE__->register_method({ path => 'refs', method => 'GET', description => "Lists possible IPSet/Alias reference which are allowed in source/dest properties.", + permissions => { + check => ['perm', '/', [ 'Sys.Audit' ]], + }, parameters => { additionalProperties => 0, properties => {