summaryrefslogtreecommitdiffstats
path: root/templates/admin
diff options
context:
space:
mode:
authorBo-Yi Wu <appleboy.tw@gmail.com>2017-02-14 20:16:00 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2017-02-14 20:16:00 +0800
commitd67b278a0d05e122bf510ac52bfbd69eab4f654d (patch)
tree28fe4dd05973026013666fd0320a7dea40d94109 /templates/admin
parent23aba523b551d20ee2bbc694ae630989bcdeaccd (diff)
downloadgitea-d67b278a0d05e122bf510ac52bfbd69eab4f654d.tar.gz
gitea-d67b278a0d05e122bf510ac52bfbd69eab4f654d.zip
feat: Able to disable non-admin to create new organization (#927)
Diffstat (limited to 'templates/admin')
-rw-r--r--templates/admin/user/edit.tmpl2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/admin/user/edit.tmpl b/templates/admin/user/edit.tmpl
index 91fbf781f3..2d9c12e822 100644
--- a/templates/admin/user/edit.tmpl
+++ b/templates/admin/user/edit.tmpl
@@ -97,12 +97,14 @@
<input name="allow_import_local" type="checkbox" {{if .User.CanImportLocal}}checked{{end}}>
</div>
</div>
+ {{if not .DisableRegularOrgCreation}}
<div class="inline field">
<div class="ui checkbox">
<label><strong>{{.i18n.Tr "admin.users.allow_create_organization"}}</strong></label>
<input name="allow_create_organization" type="checkbox" {{if .User.CanCreateOrganization}}checked{{end}}>
</div>
</div>
+ {{end}}
<div class="ui divider"></div>