fix(ui): show Licenses tab for admins always #274

Merged
jmiller merged 1 commits from fix/licenses-tab-always-admin into dev 2026-05-31 03:05:31 +00:00
+1 -1
View File
@@ -128,7 +128,7 @@
</a>
{{end}}
{{if .EnableLicenses}}
{{if or .EnableLicenses (.Permission.IsAdmin)}}
<a href="{{.RepoLink}}/licenses" class="{{if .IsLicensesPage}}active {{end}}item">
{{svg "octicon-key"}} {{ctx.Locale.Tr "repo.licenses"}}
{{if .NumLicensePackages}}