diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2025-01-01 18:02:34 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-01 18:02:34 +0800 |
commit | 2564c15cb006a551ab21dac66369c363a4e78473 (patch) | |
tree | 72859af96eee778816c52e2ba972e76507fdbcf1 /modules/templates | |
parent | 57eb9d0b644bb893ffb90d0066066a3971de3f1a (diff) | |
download | gitea-2564c15cb006a551ab21dac66369c363a4e78473.tar.gz gitea-2564c15cb006a551ab21dac66369c363a4e78473.zip |
Remove some unnecessary template helpers (#33069)
DisableGitHooks and DisableImportLocal are only used when editing a
user, so only set them in `editUserCommon`
Diffstat (limited to 'modules/templates')
-rw-r--r-- | modules/templates/helper.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/modules/templates/helper.go b/modules/templates/helper.go index 7529cadca4..48d3a8ff89 100644 --- a/modules/templates/helper.go +++ b/modules/templates/helper.go @@ -131,15 +131,9 @@ func NewFuncMap() template.FuncMap { "EnableTimetracking": func() bool { return setting.Service.EnableTimetracking }, - "DisableGitHooks": func() bool { - return setting.DisableGitHooks - }, "DisableWebhooks": func() bool { return setting.DisableWebhooks }, - "DisableImportLocal": func() bool { - return !setting.ImportLocalPaths - }, "UserThemeName": userThemeName, "NotificationSettings": func() map[string]any { return map[string]any{ |