diff --git a/routers/web/web.go b/routers/web/web.go
index 62503b314..9b814c3f5 100644
--- a/routers/web/web.go
+++ b/routers/web/web.go
@@ -591,6 +591,7 @@ func RegisterRoutes(m *web.Route) {
})
}, func(ctx *context.Context) {
ctx.Data["EnableOAuth2"] = setting.OAuth2.Enable
+ ctx.Data["EnablePackages"] = setting.Packages.Enabled
}, adminReq)
// ***** END: Admin *****
diff --git a/templates/admin/navbar.tmpl b/templates/admin/navbar.tmpl
index b138eb79b..1c8b12fc2 100644
--- a/templates/admin/navbar.tmpl
+++ b/templates/admin/navbar.tmpl
@@ -12,9 +12,11 @@
{{.locale.Tr "admin.repositories"}}
-
- {{.locale.Tr "packages.title"}}
-
+ {{if .EnablePackages}}
+
+ {{.locale.Tr "packages.title"}}
+
+ {{end}}
{{if not DisableWebhooks}}
{{.locale.Tr "admin.hooks"}}