1
0

GetUser now returns a pointer (#93)

This commit is contained in:
konrad
2019-08-14 19:59:31 +00:00
committed by Gitea
parent 8fbe721453
commit be14634e1e
25 changed files with 172 additions and 131 deletions

View File

@ -172,6 +172,11 @@ func (nu *NamespaceUser) ReadAll(search string, a web.Auth, page int) (interface
Where("users.username LIKE ?", "%"+search+"%").
Find(&all)
// Obfuscate all user emails
for _, u := range all {
u.Email = ""
}
return all, err
}