diff options
author | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-12-10 16:47:09 -0800 |
---|---|---|
committer | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-12-10 16:47:09 -0800 |
commit | 9c79f02ca44961feef36b933be7e0ebec06fa427 (patch) | |
tree | 876965d049bb6745b1fc2c6fdd420929a1abf897 /utils | |
parent | 149ac6f3ce52a5ff5d9083191278b1fc140ba8a6 (diff) | |
download | chat-9c79f02ca44961feef36b933be7e0ebec06fa427.tar.gz chat-9c79f02ca44961feef36b933be7e0ebec06fa427.tar.bz2 chat-9c79f02ca44961feef36b933be7e0ebec06fa427.zip |
Disables the ability to send email invites when user creation is disabled
Diffstat (limited to 'utils')
-rw-r--r-- | utils/config.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/config.go b/utils/config.go index 93edc0214..4c8e0b5a1 100644 --- a/utils/config.go +++ b/utils/config.go @@ -183,6 +183,7 @@ func getClientConfig(c *model.Config) map[string]string { props["SiteName"] = c.TeamSettings.SiteName props["EnableTeamCreation"] = strconv.FormatBool(c.TeamSettings.EnableTeamCreation) + props["EnableUserCreation"] = strconv.FormatBool(c.TeamSettings.EnableUserCreation) props["RestrictTeamNames"] = strconv.FormatBool(*c.TeamSettings.RestrictTeamNames) props["EnableTeamListing"] = strconv.FormatBool(*c.TeamSettings.EnableTeamListing) |