diff options
author | Elias Nahum <nahumhbl@gmail.com> | 2016-03-26 13:22:36 -0300 |
---|---|---|
committer | Elias Nahum <nahumhbl@gmail.com> | 2016-03-26 13:22:36 -0300 |
commit | 269355ebb7b8d6a242d1d38fc1a1bc56a7d3b69b (patch) | |
tree | d110e3e7c8accbaceb79e4f65886c616f16c2d81 | |
parent | 4807cddb174425c817134386be79e2ec70787bc1 (diff) | |
download | chat-269355ebb7b8d6a242d1d38fc1a1bc56a7d3b69b.tar.gz chat-269355ebb7b8d6a242d1d38fc1a1bc56a7d3b69b.tar.bz2 chat-269355ebb7b8d6a242d1d38fc1a1bc56a7d3b69b.zip |
fix register account for teams with open invites
-rw-r--r-- | model/team.go | 4 |
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 = "" + } } |