diff options
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | model/team.go | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -47,5 +47,3 @@ Learn More: - **Localization Guide** - Learn [how Mattermost supports different languages](http://docs.mattermost.com/developer/localization.html). Any other questions, mail us at info@mattermost.com. We’d love to meet you! - -[![Build Status](https://travis-ci.org/mattermost/platform.svg?branch=master)](https://travis-ci.org/mattermost/platform) 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 = "" + } } |