From 2cf80f4b1884e3d52ed9c7b83818b42e22e1d7ec Mon Sep 17 00:00:00 2001 From: Jun Hsieh ♞ Date: Fri, 12 May 2017 00:10:25 -0700 Subject: 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(+) (limited to 'templates/user') diff --git a/templates/user/dashboard/dashboard.tmpl b/templates/user/dashboard/dashboard.tmpl index 014a37bc2f..cd76a45a56 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}}

-- cgit v1.2.3