summaryrefslogtreecommitdiffstats
path: root/templates/repo/settings/navbar.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/repo/settings/navbar.tmpl')
-rw-r--r--templates/repo/settings/navbar.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/settings/navbar.tmpl b/templates/repo/settings/navbar.tmpl
index fb2e8c24ab..512ee3002d 100644
--- a/templates/repo/settings/navbar.tmpl
+++ b/templates/repo/settings/navbar.tmpl
@@ -10,7 +10,7 @@
<a class="{{if .PageIsSettingsHooks}}active{{end}} item" href="{{.RepoLink}}/settings/hooks">
{{.i18n.Tr "repo.settings.hooks"}}
</a>
- {{if or .SignedUser.AllowGitHook .SignedUser.IsAdmin}}
+ {{if .SignedUser.CanEditGitHook}}
<a class="{{if .PageIsSettingsGitHooks}}active{{end}} item" href="{{.RepoLink}}/settings/hooks/git">
{{.i18n.Tr "repo.settings.githooks"}}
</a>