Skip to content

Commit

Permalink
Fixed issue with no claim parameter values being assigned for determi…
Browse files Browse the repository at this point in the history
…ning whether to apply DISTINCT to the query.
  • Loading branch information
gmcelhanon committed Sep 21, 2024
1 parent 98ed5cd commit a244a72
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public QueryBuilder GetQueryBuilder(
}
else if (relationshipBasedAuthViewJoinType == JoinType.InnerJoin)
{
if (authorizationFiltering.Any(f => f.Filters.Any(ctx => ctx.ClaimParameterValues.Length > 1)))
if (authorizationFiltering.Any(f => f.Filters.Any(ctx => ctx.ClaimParameterValues?.Length > 1)))
{
// Authorization with multiple claim values could introduce duplicates items, so we must apply DISTINCT
queryBuilder.Distinct();
Expand Down

0 comments on commit a244a72

Please sign in to comment.