From 8290b73664bd8bc53cdbddd55a5ed535c425441e Mon Sep 17 00:00:00 2001 From: glenn Date: Fri, 15 Dec 2017 21:54:53 +0800 Subject: [PATCH] check if this account is admin when get navbar --- templates/explore/navbar.tmpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/explore/navbar.tmpl b/templates/explore/navbar.tmpl index 465e73e07..012645b08 100644 --- a/templates/explore/navbar.tmpl +++ b/templates/explore/navbar.tmpl @@ -4,11 +4,13 @@ {{.i18n.Tr "explore.repos"}} + {{if .IsAdmin}} {{.i18n.Tr "explore.users"}} {{.i18n.Tr "explore.organizations"}} + {{end}}