From 2564c15cb006a551ab21dac66369c363a4e78473 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Wed, 1 Jan 2025 18:02:34 +0800 Subject: Remove some unnecessary template helpers (#33069) DisableGitHooks and DisableImportLocal are only used when editing a user, so only set them in `editUserCommon` --- modules/templates/helper.go | 6 ------ 1 file changed, 6 deletions(-) (limited to 'modules/templates') 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{ -- cgit v1.2.3