Merge pull request #2546 from ZBoxApp/open-invite

fix register account for teams with open invites
This commit is contained in:
Joram Wilander
2016-03-28 09:04:45 -04:00

View File

@@ -237,5 +237,7 @@ func (o *Team) SanitizeForNotLoggedIn() {
o.Email = ""
o.AllowedDomains = ""
o.CompanyName = ""
o.InviteId = ""
if !o.AllowOpenInvite {
o.InviteId = ""
}
}