aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-02-10 16:41:51 -0500
committerUnknwon <u@gogs.io>2017-02-10 16:41:51 -0500
commitb67ec01d41ad9d504d80ffb950e161b9ce0841fc (patch)
tree1ee963dcee6daa7bcb6c221fb64cd587f69b88c2 /templates
parent2c154ccbe7d3d4f038885eb439c36bb9fd533e53 (diff)
Able to disable non-admin to create new organization (#1556)
Add new config option '[admin] DISABLE_REGULAR_ORG_CREATION', by default it's 'false'.
Diffstat (limited to 'templates')
-rw-r--r--templates/.VERSION2
-rw-r--r--templates/base/head.tmpl2
2 files changed, 3 insertions, 1 deletions
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 @@
<a class="item" href="{{AppSubUrl}}/repo/migrate">
<i class="octicon octicon-repo-clone"></i> {{.i18n.Tr "new_migrate"}}
</a>
+ {{if .SignedUser.CanCreateOrganization}}
<a class="item" href="{{AppSubUrl}}/org/create">
<i class="octicon octicon-organization"></i> {{.i18n.Tr "new_org"}}
</a>
+ {{end}}
</div><!-- end content create new menu -->
</div><!-- end dropdown menu create new -->