This commit is contained in:
Lunny Xiao committed 2026-04-21 12:51:54 -07:00
1 parent 1dbcf15896
commit a504940713
1 file changed
+1 -1
+1 -1
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})