Commit c992105c authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Another small fix in doDeleteVlan() wrt permission checks.

parent a3163f88
......@@ -2770,7 +2770,7 @@ sub doDeleteVlan($@) {
else {
$vlan = VLan->Lookup($experiment, $vlan_name);
}
if (defined($vlan) &&
if (defined($vlan) && !$opt{'f'} &&
!$experiment->SameExperiment($vlan->GetExperiment())) {
die("$vlan is not in the correct experiment\n");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment