Sanitize team data

We don't want to expose sensitive data that might pose a security risk.
This commit is contained in:
Antti Ahti
2015-10-14 19:27:19 +03:00
parent 731595c1a9
commit 8f96db4d0b
2 changed files with 7 additions and 0 deletions

View File

@@ -411,6 +411,7 @@ func findTeams(c *Context, w http.ResponseWriter, r *http.Request) {
teams := result.Data.([]*model.Team)
m := make(map[string]*model.Team)
for _, v := range teams {
v.Sanitize()
m[v.Id] = v
}