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 }