summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorReed Garmsen <rgarmsen2295@gmail.com>2015-12-10 16:47:09 -0800
committerReed Garmsen <rgarmsen2295@gmail.com>2015-12-10 16:47:09 -0800
commit9c79f02ca44961feef36b933be7e0ebec06fa427 (patch)
tree876965d049bb6745b1fc2c6fdd420929a1abf897 /utils
parent149ac6f3ce52a5ff5d9083191278b1fc140ba8a6 (diff)
downloadchat-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.go1
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)