Skip to content

Commit

Permalink
add ToList to SignumControllerFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
olmobrutall committed Sep 26, 2019
1 parent b66350f commit 4d52ea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Signum.React/Facades/SignumControllerFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public void PopulateFeature(IEnumerable<ApplicationPart> parts, ControllerFeatur
(AllowedAreas.TryGetC(ti.Assembly)?.Any(ns => ti.Namespace!.StartsWith(ns)) ?? false) ||
AllowedControllers.Contains(ti.AsType()));

var toRemove = feature.Controllers.Where(ti => !allowed.Contains(ti));
var toRemove = feature.Controllers.Where(ti => !allowed.Contains(ti)).ToList();

feature.Controllers.RemoveAll(ti => toRemove.Contains(ti));
}
Expand Down

0 comments on commit 4d52ea3

Please sign in to comment.