diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/context/context.go | 1 | ||||
-rw-r--r-- | modules/setting/service.go | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/modules/context/context.go b/modules/context/context.go index ef6c19ed12..4b590a7181 100644 --- a/modules/context/context.go +++ b/modules/context/context.go @@ -334,6 +334,7 @@ func Contexter() macaron.Handler { ctx.Data["IsLandingPageOrganizations"] = setting.LandingPageURL == setting.LandingPageOrganizations ctx.Data["ShowRegistrationButton"] = setting.Service.ShowRegistrationButton + ctx.Data["ShowMilestonesDashboardPage"] = setting.Service.ShowMilestonesDashboardPage ctx.Data["ShowFooterBranding"] = setting.ShowFooterBranding ctx.Data["ShowFooterVersion"] = setting.ShowFooterVersion diff --git a/modules/setting/service.go b/modules/setting/service.go index 9407231ac6..c463b0a9d5 100644 --- a/modules/setting/service.go +++ b/modules/setting/service.go @@ -21,6 +21,7 @@ var Service struct { DisableRegistration bool AllowOnlyExternalRegistration bool ShowRegistrationButton bool + ShowMilestonesDashboardPage bool RequireSignInView bool EnableNotifyMail bool EnableBasicAuth bool @@ -62,6 +63,7 @@ func newService() { Service.AllowOnlyExternalRegistration = sec.Key("ALLOW_ONLY_EXTERNAL_REGISTRATION").MustBool() Service.EmailDomainWhitelist = sec.Key("EMAIL_DOMAIN_WHITELIST").Strings(",") Service.ShowRegistrationButton = sec.Key("SHOW_REGISTRATION_BUTTON").MustBool(!(Service.DisableRegistration || Service.AllowOnlyExternalRegistration)) + Service.ShowMilestonesDashboardPage = sec.Key("SHOW_MILESTONES_DASHBOARD_PAGE").MustBool(true) Service.RequireSignInView = sec.Key("REQUIRE_SIGNIN_VIEW").MustBool() Service.EnableBasicAuth = sec.Key("ENABLE_BASIC_AUTHENTICATION").MustBool(true) Service.EnableReverseProxyAuth = sec.Key("ENABLE_REVERSE_PROXY_AUTHENTICATION").MustBool() |