summaryrefslogtreecommitdiffstats
path: root/model/team.go
diff options
context:
space:
mode:
authorAntti Ahti <antti.ahti@gmail.com>2015-10-14 19:27:19 +0300
committerAntti Ahti <antti.ahti@gmail.com>2015-10-14 19:27:19 +0300
commit8f96db4d0b52d0701398703364948e659f3ce34f (patch)
tree929fbd75896579cc2535ad2f5d69ef9531888e12 /model/team.go
parent731595c1a93e51bcd4e6034b088b53766883a9eb (diff)
downloadchat-8f96db4d0b52d0701398703364948e659f3ce34f.tar.gz
chat-8f96db4d0b52d0701398703364948e659f3ce34f.tar.bz2
chat-8f96db4d0b52d0701398703364948e659f3ce34f.zip
Sanitize team data
We don't want to expose sensitive data that might pose a security risk.
Diffstat (limited to 'model/team.go')
-rw-r--r--model/team.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/model/team.go b/model/team.go
index c0f6524cd..584c78f8d 100644
--- a/model/team.go
+++ b/model/team.go
@@ -219,3 +219,9 @@ func CleanTeamName(s string) string {
func (o *Team) PreExport() {
}
+
+func (o *Team) Sanitize() {
+ o.Email = ""
+ o.Type = ""
+ o.AllowedDomains = ""
+}