Browse Source

Remove email from user search

for-closed-social
Odin Ugedal 8 years ago
parent
commit
6ccb2d36cf
1 changed files with 0 additions and 1 deletions
  1. +0
    -1
      models/user.go

+ 0
- 1
models/user.go View File

@ -1142,7 +1142,6 @@ func SearchUserByName(opts *SearchUserOptions) (users []*User, _ int64, _ error)
// Append conditions // Append conditions
sess := x.Where("lower_name like ?", searchQuery). sess := x.Where("lower_name like ?", searchQuery).
Or("full_name like ?", searchQuery). Or("full_name like ?", searchQuery).
Or("email like ?", searchQuery).
And("type = ?", opts.Type) And("type = ?", opts.Type)
var countSess xorm.Session var countSess xorm.Session

Loading…
Cancel
Save