1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 10:18:38 +00:00

Remove some unnecessary template helpers (#33069)

DisableGitHooks and DisableImportLocal are only used when editing a
user, so only set them in `editUserCommon`
This commit is contained in:
wxiaoguang
2025-01-01 18:02:34 +08:00
committed by GitHub
parent 57eb9d0b64
commit 2564c15cb0
10 changed files with 182 additions and 185 deletions

View File

@@ -13,8 +13,9 @@ import (
"code.gitea.io/gitea/modules/log"
)
// Security settings
var (
// Security settings
InstallLock bool
SecretKey string
InternalToken string // internal access token
@@ -27,7 +28,7 @@ var (
ReverseProxyTrustedProxies []string
MinPasswordLength int
ImportLocalPaths bool
DisableGitHooks bool
DisableGitHooks = true
DisableWebhooks bool
OnlyAllowPushIfGiteaEnvironmentSet bool
PasswordComplexity []string