diff options
author | Bo-Yi Wu <appleboy.tw@gmail.com> | 2017-02-14 20:16:00 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-02-14 20:16:00 +0800 |
commit | d67b278a0d05e122bf510ac52bfbd69eab4f654d (patch) | |
tree | 28fe4dd05973026013666fd0320a7dea40d94109 /templates/admin | |
parent | 23aba523b551d20ee2bbc694ae630989bcdeaccd (diff) | |
download | gitea-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.tmpl | 2 |
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> |