summaryrefslogtreecommitdiffstats
path: root/model/team.go
diff options
context:
space:
mode:
authorElias Nahum <nahumhbl@gmail.com>2016-03-26 13:22:36 -0300
committerElias Nahum <nahumhbl@gmail.com>2016-03-26 13:22:36 -0300
commit269355ebb7b8d6a242d1d38fc1a1bc56a7d3b69b (patch)
treed110e3e7c8accbaceb79e4f65886c616f16c2d81 /model/team.go
parent4807cddb174425c817134386be79e2ec70787bc1 (diff)
downloadchat-269355ebb7b8d6a242d1d38fc1a1bc56a7d3b69b.tar.gz
chat-269355ebb7b8d6a242d1d38fc1a1bc56a7d3b69b.tar.bz2
chat-269355ebb7b8d6a242d1d38fc1a1bc56a7d3b69b.zip
fix register account for teams with open invites
Diffstat (limited to 'model/team.go')
-rw-r--r--model/team.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/model/team.go b/model/team.go
index bed7bbd8d..d95dea110 100644
--- a/model/team.go
+++ b/model/team.go
@@ -237,5 +237,7 @@ func (o *Team) SanitizeForNotLoggedIn() {
o.Email = ""
o.AllowedDomains = ""
o.CompanyName = ""
- o.InviteId = ""
+ if !o.AllowOpenInvite {
+ o.InviteId = ""
+ }
}