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"}}