GetUser now returns a pointer (#93)
This commit is contained in:
parent
8fbe721453
commit
be14634e1e
25 changed files with 172 additions and 131 deletions
|
|
@ -186,6 +186,11 @@ func (lu *ListUser) ReadAll(search string, a web.Auth, page int) (interface{}, e
|
|||
Where("users.username LIKE ?", "%"+search+"%").
|
||||
Find(&all)
|
||||
|
||||
// Obfuscate all user emails
|
||||
for _, u := range all {
|
||||
u.Email = ""
|
||||
}
|
||||
|
||||
return all, err
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue