From 761322395e54b52f20c3bd978db4897fabe49879 Mon Sep 17 00:00:00 2001 From: George Goldberg Date: Mon, 23 Oct 2017 20:21:26 +0100 Subject: PLT-7743: Data retention in client side config. (#7695) --- utils/config.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'utils/config.go') diff --git a/utils/config.go b/utils/config.go index 2a956dd4a..8611be975 100644 --- a/utils/config.go +++ b/utils/config.go @@ -578,6 +578,13 @@ func getClientConfig(c *model.Config) map[string]string { props["AllowCustomThemes"] = strconv.FormatBool(*c.ThemeSettings.AllowCustomThemes) props["AllowedThemes"] = strings.Join(c.ThemeSettings.AllowedThemes, ",") } + + if *License.Features.DataRetention { + props["DataRetentionEnableMessageDeletion"] = strconv.FormatBool(*c.DataRetentionSettings.EnableMessageDeletion) + props["DataRetentionMessageRetentionDays"] = strconv.FormatInt(int64(*c.DataRetentionSettings.MessageRetentionDays), 10) + props["DataRetentionEnableFileDeletion"] = strconv.FormatBool(*c.DataRetentionSettings.EnableFileDeletion) + props["DataRetentionFileRetentionDays"] = strconv.FormatInt(int64(*c.DataRetentionSettings.FileRetentionDays), 10) + } } return props -- cgit v1.2.3-1-g7c22