aboutsummaryrefslogtreecommitdiffstats
path: root/modules/templates/helper.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/templates/helper.go')
-rw-r--r--modules/templates/helper.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/templates/helper.go b/modules/templates/helper.go
index b8e4f5d505..00ccd49cb4 100644
--- a/modules/templates/helper.go
+++ b/modules/templates/helper.go
@@ -229,6 +229,9 @@ func NewFuncMap() []template.FuncMap {
"DisableGitHooks": func() bool {
return setting.DisableGitHooks
},
+ "DisableWebhooks": func() bool {
+ return setting.DisableWebhooks
+ },
"DisableImportLocal": func() bool {
return !setting.ImportLocalPaths
},