From 6852de696291bdba754839a1f537ba4a0809a8dd Mon Sep 17 00:00:00 2001 From: davrot Date: Fri, 24 Jan 2025 12:08:28 +0000 Subject: [PATCH] modules/setting/service.go aktualisiert --- modules/setting/service.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/setting/service.go b/modules/setting/service.go index 9807f33352..67536af024 100644 --- a/modules/setting/service.go +++ b/modules/setting/service.go @@ -87,7 +87,8 @@ var Service = struct { ValidSiteURLSchemes []string UsernameCooldownPeriod int64 MaxUserRedirects int64 - + LandingPageInfoEnabled bool + // OpenID settings EnableOpenIDSignIn bool EnableOpenIDSignUp bool @@ -210,6 +211,7 @@ func loadServiceFrom(rootCfg ConfigProvider) { if Service.EnableTimetracking { Service.DefaultEnableTimetracking = sec.Key("DEFAULT_ENABLE_TIMETRACKING").MustBool(true) } + Service.LandingPageInfoEnabled = sec.Key("ENABLE_LANDING_PAGE_INFO").MustBool(true) Service.DefaultEnableDependencies = sec.Key("DEFAULT_ENABLE_DEPENDENCIES").MustBool(true) Service.AllowCrossRepositoryDependencies = sec.Key("ALLOW_CROSS_REPOSITORY_DEPENDENCIES").MustBool(true) Service.DefaultAllowOnlyContributorsToTrackTime = sec.Key("DEFAULT_ALLOW_ONLY_CONTRIBUTORS_TO_TRACK_TIME").MustBool(true)