diff options
Diffstat (limited to 'templates/repo/header.tmpl')
-rw-r--r-- | templates/repo/header.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index 64eb790d41..f59dd621bf 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -172,7 +172,7 @@ {{end}} {{if .Permission.IsAdmin}} - {{if not (.Repository.AllUnitsEnabled ctx)}} + {{if and .SignedUser.EnableRepoUnitHints (not (.Repository.AllUnitsEnabled ctx))}} <a class="{{if .PageIsRepoSettingsUnits}}active {{end}}item" href="{{.RepoLink}}/settings/units"> {{svg "octicon-diff-added"}} {{ctx.Locale.Tr "repo.settings.units.add_more"}} </a> |