From fdc156adadddc3c7a31b1a665ff29c97e1348144 Mon Sep 17 00:00:00 2001 From: user123 Date: Sat, 10 Jan 2026 20:54:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DGitHub=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E5=90=8D=E9=80=9A=E9=85=8D=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/access_control.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/utils/access_control.go b/src/utils/access_control.go index 48a685b..9912276 100644 --- a/src/utils/access_control.go +++ b/src/utils/access_control.go @@ -200,6 +200,13 @@ func (ac *AccessController) checkList(matches, list []string) bool { if strings.HasPrefix(fullRepo, item+"/") { return true } + + if strings.HasPrefix(item, "*/") { + p := item[2:] + if p == repoName || (strings.HasSuffix(p, "*") && strings.HasPrefix(repoName, p[:len(p)-1])) { + return true + } + } } return false }