Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ejsmith committed Mar 14, 2024
1 parent 3aeac03 commit fc2da82
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ internal async Task ApplyQueryRestrictions(IQueryVisitorContext context)
var nonAllowedFields = new List<string>();
foreach (var field in result.ReferencedFields)
{
if (String.IsNullOrWhiteSpace(field))
continue;

if (!options.AllowedFields.Contains(field, StringComparer.OrdinalIgnoreCase))
nonAllowedFields.Add(field);
}
Expand Down

0 comments on commit fc2da82

Please sign in to comment.