fix: don't return email addresses from user search results

This commit is contained in:
kolaente 2022-08-02 15:02:15 +02:00
parent c51ee94ad1
commit 3688bbde20
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -63,6 +63,10 @@ func ListUsers(s *xorm.Session, search string, opts *ListUserOpts) (users []*Use
err = s. err = s.
Where(cond). Where(cond).
Find(&users) Find(&users)
for _, u := range users {
u.Email = ""
}
return return
} }