summaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authortechknowlogick <techknowlogick@users.noreply.github.com>2017-09-12 05:25:42 -0400
committerLauris BH <lauris@nix.lv>2017-09-12 12:25:42 +0300
commit9bdbfbf6f3289f4df0df5aae9998a08483f22218 (patch)
tree5ae5d89fbb745876517fba4abb2a0c007a3654de /conf
parent3fecf94086be1b5f2bddd48cebc0e1ca4702de5c (diff)
downloadgitea-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 'conf')
-rw-r--r--conf/app.ini2
1 files changed, 2 insertions, 0 deletions
diff --git a/conf/app.ini b/conf/app.ini
index 676321d7d5..9674b815c9 100644
--- a/conf/app.ini
+++ b/conf/app.ini
@@ -206,6 +206,8 @@ REVERSE_PROXY_AUTHENTICATION_USER = X-WEBAUTH-USER
MIN_PASSWORD_LENGTH = 6
; True when users are allowed to import local server paths
IMPORT_LOCAL_PATHS = false
+; Prevent all users (including admin) from creating custom git hooks
+DISABLE_GIT_HOOKS = false
[openid]
;