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

Thomas Lamprecht t.lamprecht at proxmox.com
Mon Jun 15 15:37:22 CEST 2020


Am 6/12/20 um 1:31 PM schrieb Alexandre Derumier:
> 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,
> 

applied, thanks!




More information about the pve-devel mailing list