Signed-off-by: Alexandre Derumier <aderum...@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

_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to