Skip to content

BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr

set default API documentation enabled option to false

lotkcc6c1d95977f
diff --git a/core/internal/controller/settings/settings_v1_get_system_config.go b/core/internal/controller/settings/settings_v1_get_system_config.go
index 292e12a7..4751014a 100644
--- a/core/internal/controller/settings/settings_v1_get_system_config.go
+++ b/core/internal/controller/settings/settings_v1_get_system_config.go
@@ -51,7 +51,7 @@ func (c *ControllerV1) GetSystemConfig(ctx context.Context, req *v1.GetSystemCon
err = public.OptionsMgrInstance.GetOption(ctx, "API_DOC_ENABLED", &apiDocEnabled)
if err != nil {
- apiDocEnabled = true
+ apiDocEnabled = false
}
err = public.OptionsMgrInstance.GetOption(ctx, "API_TOKEN", &apiToken)