From 2cf80f4b1884e3d52ed9c7b83818b42e22e1d7ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jun=20Hsieh=20=E2=99=9E?= Date: Fri, 12 May 2017 00:10:25 -0700 Subject: [PATCH] Hide the create organization button (in dashboard/organization section) (#1705) when the user has no such permission. --- templates/user/dashboard/dashboard.tmpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/user/dashboard/dashboard.tmpl b/templates/user/dashboard/dashboard.tmpl index 014a37bc2..cd76a45a5 100644 --- a/templates/user/dashboard/dashboard.tmpl +++ b/templates/user/dashboard/dashboard.tmpl @@ -76,10 +76,12 @@

{{.i18n.Tr "home.my_orgs"}} {{.ContextUser.GetOrganizationCount}}
+ {{if .SignedUser.CanCreateOrganization}} {{.i18n.Tr "new_org"}} + {{end}}