From b67ec01d41ad9d504d80ffb950e161b9ce0841fc Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 10 Feb 2017 16:41:51 -0500 Subject: Able to disable non-admin to create new organization (#1556) Add new config option '[admin] DISABLE_REGULAR_ORG_CREATION', by default it's 'false'. --- templates/.VERSION | 2 +- templates/base/head.tmpl | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/.VERSION b/templates/.VERSION index 694d35dd..48bfda0f 100644 --- a/templates/.VERSION +++ b/templates/.VERSION @@ -1 +1 @@ -0.9.139.0210 \ No newline at end of file +0.9.140.0210 \ No newline at end of file diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index ae54e1e7..50a8283f 100644 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -93,9 +93,11 @@ {{.i18n.Tr "new_migrate"}} + {{if .SignedUser.CanCreateOrganization}} {{.i18n.Tr "new_org"}} + {{end}} -- cgit v1.2.3