diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-12-08 13:38:43 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-12-16 17:30:15 -0500 |
commit | 58358ddd7cd0152bf16a7326e1d595524fb51246 (patch) | |
tree | 350cd462f9b530529e0f098fa1d458c3a36abd4a /utils/config.go | |
parent | 4f881046bf2a4c74fb44d71e2e78826c70719a8c (diff) | |
download | chat-58358ddd7cd0152bf16a7326e1d595524fb51246.tar.gz chat-58358ddd7cd0152bf16a7326e1d595524fb51246.tar.bz2 chat-58358ddd7cd0152bf16a7326e1d595524fb51246.zip |
Some refactoring
Diffstat (limited to 'utils/config.go')
-rw-r--r-- | utils/config.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/config.go b/utils/config.go index 3f451b88a..18bd15241 100644 --- a/utils/config.go +++ b/utils/config.go @@ -180,6 +180,7 @@ func getClientConfig(c *model.Config) map[string]string { props["BuildNumber"] = model.BuildNumber props["BuildDate"] = model.BuildDate props["BuildHash"] = model.BuildHash + props["BuildEnterpriseReady"] = model.BuildEnterpriseReady props["SiteName"] = c.TeamSettings.SiteName props["EnableTeamCreation"] = strconv.FormatBool(c.TeamSettings.EnableTeamCreation) @@ -203,6 +204,7 @@ func getClientConfig(c *model.Config) map[string]string { props["FeedbackEmail"] = c.EmailSettings.FeedbackEmail props["EnableSignUpWithGitLab"] = strconv.FormatBool(c.GitLabSettings.Enable) + props["EnableSignUpWithGoogle"] = strconv.FormatBool(c.GoogleSettings.Enable) props["ShowEmailAddress"] = strconv.FormatBool(c.PrivacySettings.ShowEmailAddress) @@ -217,5 +219,7 @@ func getClientConfig(c *model.Config) map[string]string { props["ProfileHeight"] = fmt.Sprintf("%v", c.FileSettings.ProfileHeight) props["ProfileWidth"] = fmt.Sprintf("%v", c.FileSettings.ProfileWidth) + props["EnableLdap"] = strconv.FormatBool(*c.LdapSettings.Enable) + return props } |