Skip to content

Commit

Permalink
Search also for full name
Browse files Browse the repository at this point in the history
  • Loading branch information
ebroda committed Dec 4, 2024
1 parent 54035c3 commit 899d338
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ func (i *UserQuery) PermittedUserFilter(token *AccessToken) bson.D {
filter.ElemMatchList("system_roles", "name", i.SystemRoles)
filter.EqualStringList("active.status", i.ActiveState)
filter.EqualStringList("nvm.status", i.NVMState)
filter.SearchString([]string{"_id", "first_name", "last_name", "email"}, i.Search)
filter.SearchString([]string{"_id", "first_name", "last_name", "full_name", "email"}, i.Search)
return filter.Bson()
}

Expand Down

0 comments on commit 899d338

Please sign in to comment.