fix: don't return email addresses from user search results
This commit is contained in:
parent
c51ee94ad1
commit
3688bbde20
1 changed files with 4 additions and 0 deletions
|
@ -63,6 +63,10 @@ func ListUsers(s *xorm.Session, search string, opts *ListUserOpts) (users []*Use
|
|||
err = s.
|
||||
Where(cond).
|
||||
Find(&users)
|
||||
|
||||
for _, u := range users {
|
||||
u.Email = ""
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue