mirror of
git://git.proxmox.com/git/pve-network.git
synced 2025-04-30 11:27:11 +02:00
get_local_vnets: fix permission path && perm
new path is /zones/<zone>/<vnetid> Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
a38775c818
commit
f048b81513
|
@ -190,10 +190,10 @@ sub get_local_vnets {
|
|||
my $zoneid = $vnet->{zone};
|
||||
my $comments = $vnet->{alias};
|
||||
|
||||
my $privs = [ 'SDN.Audit', 'SDN.Allocate' ];
|
||||
my $privs = [ 'SDN.Audit', 'SDN.Use' ];
|
||||
|
||||
next if !$zoneid;
|
||||
next if !$rpcenv->check_any($authuser, "/sdn/zones/$zoneid", $privs, 1) && !$rpcenv->check_any($authuser, "/sdn/vnets/$vnetid", $privs, 1);
|
||||
next if !$rpcenv->check_sdn_bridge($authuser, $zoneid, $vnetid, $privs, 1);
|
||||
|
||||
my $zone_config = PVE::Network::SDN::Zones::sdn_zones_config($zones_cfg, $zoneid);
|
||||
|
||||
|
|
Loading…
Reference in a new issue