diff options
author | Unknwon <u@gogs.io> | 2017-02-10 16:41:51 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-02-10 16:41:51 -0500 |
commit | b67ec01d41ad9d504d80ffb950e161b9ce0841fc (patch) | |
tree | 1ee963dcee6daa7bcb6c221fb64cd587f69b88c2 /templates | |
parent | 2c154ccbe7d3d4f038885eb439c36bb9fd533e53 (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/.VERSION | 2 | ||||
-rw-r--r-- | templates/base/head.tmpl | 2 |
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 --> |