mirror of
https://github.com/mattermost/mattermost.git
synced 2026-05-28 04:35:04 -04:00
MM-30090 Add ManagedResourcePaths setting (#16213)
This commit is contained in:
parent
ccf5916ef0
commit
059672ba73
2 changed files with 6 additions and 0 deletions
|
|
@ -47,6 +47,7 @@ func GenerateClientConfig(c *model.Config, telemetryID string, license *model.Li
|
|||
props["EnableMarketplace"] = strconv.FormatBool(*c.PluginSettings.EnableMarketplace)
|
||||
props["EnableLatex"] = strconv.FormatBool(*c.ServiceSettings.EnableLatex)
|
||||
props["ExtendSessionLengthWithActivity"] = strconv.FormatBool(*c.ServiceSettings.ExtendSessionLengthWithActivity)
|
||||
props["ManagedResourcePaths"] = *c.ServiceSettings.ManagedResourcePaths
|
||||
|
||||
// This setting is only temporary, so keep using the old setting name for the mobile and web apps
|
||||
props["ExperimentalEnablePostMetadata"] = "true"
|
||||
|
|
|
|||
|
|
@ -351,6 +351,7 @@ type ServiceSettings struct {
|
|||
FeatureFlagSyncIntervalSeconds *int `access:"environment,write_restrictable"`
|
||||
DebugSplit *bool `access:"environment,write_restrictable"`
|
||||
ThreadAutoFollow *bool `access:"experimental"`
|
||||
ManagedResourcePaths *string `access:"environment,write_restrictable,cloud_restrictable"`
|
||||
}
|
||||
|
||||
func (s *ServiceSettings) SetDefaults(isUpdate bool) {
|
||||
|
|
@ -784,6 +785,10 @@ func (s *ServiceSettings) SetDefaults(isUpdate bool) {
|
|||
if s.ThreadAutoFollow == nil {
|
||||
s.ThreadAutoFollow = NewBool(true)
|
||||
}
|
||||
|
||||
if s.ManagedResourcePaths == nil {
|
||||
s.ManagedResourcePaths = NewString("")
|
||||
}
|
||||
}
|
||||
|
||||
type ClusterSettings struct {
|
||||
|
|
|
|||
Loading…
Reference in a new issue