0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-05-15 15:03:32 +02:00
This commit is contained in:
Lunny Xiao 2026-04-21 12:51:54 -07:00
parent 1dbcf15896
commit a504940713
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A

View File

@ -203,7 +203,7 @@ func (opts FindOrgMembersOpts) applyKeywordFilter(sess *xorm.Session) (*xorm.Ses
builder.Like{"LOWER(`user`.full_name)", lowerKeyword},
)
if opts.SearchByEmail {
emailCond := builder.Like{"LOWER(`user`.email)", lowerKeyword}
var emailCond builder.Cond = builder.Like{"LOWER(`user`.email)", lowerKeyword}
switch {
case opts.Doer == nil:
emailCond = emailCond.And(builder.Eq{"`user`.keep_email_private": false})