diff options
Diffstat (limited to 'model')
-rw-r--r-- | model/config.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/model/config.go b/model/config.go index 51a3b252e..1d9e078b6 100644 --- a/model/config.go +++ b/model/config.go @@ -32,6 +32,10 @@ const ( DIRECT_MESSAGE_ANY = "any" DIRECT_MESSAGE_TEAM = "team" + TEAM_INVITE_ALL = "all" + TEAM_INVITE_TEAM_ADMIN = "team_admin" + TEAM_INVITE_SYSTEM_ADMIN = "system_admin" + FAKE_SETTING = "********************************" RESTRICT_EMOJI_CREATION_ALL = "all" @@ -174,6 +178,7 @@ type TeamSettings struct { EnableCustomBrand *bool CustomBrandText *string RestrictDirectMessage *string + RestrictTeamInvite *string } type LdapSettings struct { @@ -346,6 +351,11 @@ func (o *Config) SetDefaults() { *o.TeamSettings.RestrictDirectMessage = DIRECT_MESSAGE_ANY } + if o.TeamSettings.RestrictTeamInvite == nil { + o.TeamSettings.RestrictTeamInvite = new(string) + *o.TeamSettings.RestrictTeamInvite = TEAM_INVITE_ALL + } + if o.EmailSettings.EnableSignInWithEmail == nil { o.EmailSettings.EnableSignInWithEmail = new(bool) |