diff --git a/config/config.go b/config/config.go index 1626c1920..0f0225afe 100644 --- a/config/config.go +++ b/config/config.go @@ -223,6 +223,10 @@ func (c *Config) IsProFeatureEnabled() bool { return true } + if len(c.External["platform"]) > 0 { + return true + } + return false } diff --git a/config/config_test.go b/config/config_test.go index b77f2e282..8e3639331 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -321,6 +321,19 @@ func TestConfig_IsProFeatureEnabled(t *testing.T) { }, expected: true, }, + { + name: "External Platform configuration used", + config: &Config{ + External: map[string]ExternalConfig{ + "platform": map[string]interface{}{ + "autoSleep": map[string]interface{}{ + "afterInactivity": 300, + }, + }, + }, + }, + expected: true, + }, } for _, tt := range tests {