From 5883db45c11f7151aa001f0f6889418200f99e98 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Wed, 28 Jun 2023 15:15:30 +0200 Subject: [PATCH] [GITEA] do not display secrets when actions is disabled on a repo Fixes: https://codeberg.org/forgejo/forgejo/issues/938 --- templates/repo/settings/navbar.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/settings/navbar.tmpl b/templates/repo/settings/navbar.tmpl index 92377897e9..056141b516 100644 --- a/templates/repo/settings/navbar.tmpl +++ b/templates/repo/settings/navbar.tmpl @@ -27,7 +27,7 @@ {{.locale.Tr "repo.settings.deploy_keys"}} - {{if .EnableActions}} + {{if and .EnableActions (not .UnitActionsGlobalDisabled) (.Permission.CanRead $.UnitTypeActions)}} {{.locale.Tr "secrets.secrets"}}