From 282ef8f3e7b7d6c5989b95f1c2306c85fa2a0013 Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Sat, 30 May 2026 22:04:44 -0500 Subject: [PATCH] fix(ui): show Licenses tab for repo admins even without packages The Licenses tab was hidden when no packages existed, making it impossible for admins to find the page to create their first package. Now shows for repo admins always, and for everyone when packages exist. Co-Authored-By: Claude Opus 4.6 (1M context) --- templates/repo/header.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index 27e261a28d..cb7d95abce 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -128,7 +128,7 @@ {{end}} - {{if .EnableLicenses}} + {{if or .EnableLicenses (.Permission.IsAdmin)}} {{svg "octicon-key"}} {{ctx.Locale.Tr "repo.licenses"}} {{if .NumLicensePackages}} -- 2.52.0