Skip to content

Commit 8ddb5ba

Browse files
author
Loïc Dachary
committed
Merge pull request '[GITEA] do not display secrets when actions is disabled on a repo' (go-gitea#941) from earl-warren/forgejo:wip-v1.19-secrets-navbar into v1.19/forgejo
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/941
2 parents 5ef34a2 + 5883db4 commit 8ddb5ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/repo/settings/navbar.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<a class="{{if .PageIsSettingsKeys}}active {{end}}item" href="{{.RepoLink}}/settings/keys">
2828
{{.locale.Tr "repo.settings.deploy_keys"}}
2929
</a>
30-
{{if .EnableActions}}
30+
{{if and .EnableActions (not .UnitActionsGlobalDisabled) (.Permission.CanRead $.UnitTypeActions)}}
3131
<a class="{{if .PageIsSettingsSecrets}}active {{end}}item" href="{{.RepoLink}}/settings/secrets">
3232
{{.locale.Tr "secrets.secrets"}}
3333
</a>

0 commit comments

Comments
 (0)