We don't want to expose sensitive data that might pose a security risk.
Этот коммит содержится в:
Antti Ahti
2015-10-14 19:27:19 +03:00
родитель 731595c1a9
Коммит 8f96db4d0b
2 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@@ -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
}

Просмотреть файл

@@ -219,3 +219,9 @@ func CleanTeamName(s string) string {
func (o *Team) PreExport() {
}
func (o *Team) Sanitize() {
o.Email = ""
o.Type = ""
o.AllowedDomains = ""
}