diff --git a/routers/web/web.go b/routers/web/web.go
index f9611b5f4b..4b666faf63 100644
--- a/routers/web/web.go
+++ b/routers/web/web.go
@@ -676,7 +676,9 @@ func registerRoutes(m *web.Route) {
m.Get("", admin.Dashboard)
m.Post("", web.Bind(forms.AdminDashboardForm{}), admin.DashboardPost)
- m.Get("/self_check", admin.SelfCheck)
+ if setting.Database.Type.IsMySQL() || setting.Database.Type.IsMSSQL() {
+ m.Get("/self_check", admin.SelfCheck)
+ }
m.Group("/config", func() {
m.Get("", admin.Config)
diff --git a/templates/admin/navbar.tmpl b/templates/admin/navbar.tmpl
index fa79f0f759..f23bdee124 100644
--- a/templates/admin/navbar.tmpl
+++ b/templates/admin/navbar.tmpl
@@ -4,9 +4,11 @@
{{ctx.Locale.Tr "admin.dashboard"}}
+ {{if or .DatabaseType.IsMySQL .DatabaseType.IsMSSQL}}
{{ctx.Locale.Tr "admin.self_check"}}
+ {{end}}
{{ctx.Locale.Tr "admin.identity_access"}}