mirror of
https://github.com/go-gitea/gitea.git
synced 2024-05-11 05:55:29 +00:00
Fix #285
This commit is contained in:
@ -500,7 +500,7 @@ func SearchUserByName(key string, limit int) (us []*User, err error) {
|
||||
key = strings.ToLower(key)
|
||||
|
||||
us = make([]*User, 0, limit)
|
||||
err = x.Limit(limit).Where("lower_name like '%" + key + "%'").Find(&us)
|
||||
err = x.Limit(limit).Where("type=0").And("lower_name like '%" + key + "%'").Find(&us)
|
||||
return us, err
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user