diff --git a/routers/web/web.go b/routers/web/web.go
index c3293ba7f..6d390fdd1 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 fa79f0f75..f23bdee12 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"}}