Skip to content

Commit

Permalink
Pending user names count as any unresolved name request.
Browse files Browse the repository at this point in the history
  • Loading branch information
sei-bstein committed Nov 19, 2024
1 parent e6da262 commit 7a5464a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gameboard.Api/Features/User/UserService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public async Task<IEnumerable<UserOnly>> List<TProject>(UserSearch model) where
query = query.Where(u => ((int)u.Role) > 0);

if (model.WantsPending)
query = query.Where(u => u.NameStatus.Equals(AppConstants.NameStatusPending) && u.Name != u.ApprovedName);
query = query.Where(u => u.Name != u.ApprovedName);

if (model.WantsDisallowed)
query = query.Where(u => !string.IsNullOrEmpty(u.NameStatus) && !u.NameStatus.Equals(AppConstants.NameStatusPending));
Expand Down

0 comments on commit 7a5464a

Please sign in to comment.