[pve-devel] [PATCH pve-manager] api : cluster resources: add sdn audit permission

Alexandre Derumier aderumier at odiso.com
Fri Jun 12 13:31:28 CEST 2020


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/API2/Cluster.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/API2/Cluster.pm b/PVE/API2/Cluster.pm
index 76560fa4..062ca849 100644
--- a/PVE/API2/Cluster.pm
+++ b/PVE/API2/Cluster.pm
@@ -411,7 +411,7 @@ __PACKAGE__->register_method({
 
 		    foreach my $id (keys %{$sdns}) {
 			my $sdn = $sdns->{$id};
-			#next if !$rpcenv->check($authuser, "/sdn/$id", [ 'SDN.Audit' ], 1);
+			next if !$rpcenv->check($authuser, "/sdn/zones/$id", [ 'SDN.Audit' ], 1);
 			my $entry = {
 			    id => "sdn/$node/$id",
 			    sdn => $id,
-- 
2.20.1




More information about the pve-devel mailing list