From 798798f7ab00ae3e43b40253cf7ea388662b539d Mon Sep 17 00:00:00 2001 From: Jakob Lykke Andersen Date: Tue, 11 Sep 2018 20:10:09 +0200 Subject: templates: hide dashboard org creation when not allowed (#5393) The admin -> DISABLE_REGULAR_ORG_CREATION setting hides organization creation in the header, but not in the dashboard. --- 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 4a0c90a2..a366a531 100644 --- a/templates/user/dashboard/dashboard.tmpl +++ b/templates/user/dashboard/dashboard.tmpl @@ -76,12 +76,14 @@
{{.i18n.Tr "home.my_orgs"}} {{.ContextUser.GetOrganizationCount}} + {{if .LoggedUser.CanCreateOrganization}} + {{end}}
    -- cgit v1.2.3