Skip to content

Commit 59e007d

Browse files
[~] Fixed dst/src check when using the dest/src buttons CactuseSecurity#2949
1 parent abc4f85 commit 59e007d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

roles/ui/files/FWO.UI/Pages/NetworkModelling/EditConnLeftSide.razor

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -345,14 +345,6 @@
345345
}
346346
}
347347

348-
Direction direction = toSource ? Direction.Source : Direction.Destination;
349-
350-
if (areas.Count > 0 && ConnHandler is not null && !ConnHandler.NetworkAreaUseAllowed(areas, direction, out (string Title, string Text) reason))
351-
{
352-
DisplayMessageInUi(default, reason.Title, reason.Text, true);
353-
return;
354-
}
355-
356348
if(appRoles.Count > 0)
357349
{
358350
if(toSource)
@@ -374,6 +366,14 @@
374366
{
375367
ConnHandler?.AreasToDestination(areas);
376368
}
369+
370+
Direction direction = toSource ? Direction.Source : Direction.Destination;
371+
372+
if (ConnHandler is not null && !ConnHandler.NetworkAreaUseAllowed(areas, direction, out (string Title, string Text) reason))
373+
{
374+
DisplayMessageInUi(default, reason.Title, reason.Text, true);
375+
}
376+
377377
}
378378
if(nwGroups.Count > 0)
379379
{

0 commit comments

Comments
 (0)