mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-15 15:03:32 +02:00
fix
This commit is contained in:
parent
1dbcf15896
commit
a504940713
@ -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})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user