diff options
author | techknowlogick <techknowlogick@users.noreply.github.com> | 2017-09-12 05:25:42 -0400 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2017-09-12 12:25:42 +0300 |
commit | 9bdbfbf6f3289f4df0df5aae9998a08483f22218 (patch) | |
tree | 5ae5d89fbb745876517fba4abb2a0c007a3654de /templates/admin | |
parent | 3fecf94086be1b5f2bddd48cebc0e1ca4702de5c (diff) | |
download | gitea-9bdbfbf6f3289f4df0df5aae9998a08483f22218.tar.gz gitea-9bdbfbf6f3289f4df0df5aae9998a08483f22218.zip |
Disable custom Git Hooks globally via configuration file (#2450)
* Create option to disable githooks globally via configuration file
* Update comment in app.ini to align with @ethantkoenig's suggestion
Signed-off-by: Matti Ranta <matti@mdranta.net>
Diffstat (limited to 'templates/admin')
-rw-r--r-- | templates/admin/user/edit.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/admin/user/edit.tmpl b/templates/admin/user/edit.tmpl index 4feeef302a..ae7cb56616 100644 --- a/templates/admin/user/edit.tmpl +++ b/templates/admin/user/edit.tmpl @@ -86,7 +86,7 @@ <div class="inline field"> <div class="ui checkbox"> <label><strong>{{.i18n.Tr "admin.users.allow_git_hook"}}</strong></label> - <input name="allow_git_hook" type="checkbox" {{if .User.CanEditGitHook}}checked{{end}}> + <input name="allow_git_hook" type="checkbox" {{if .User.CanEditGitHook}}checked{{end}} {{if DisableGitHooks}}disabled{{end}}> </div> </div> <div class="inline field"> |