Fix access control check for repository name #90

Closed
s0urcelab wants to merge 1 commits from patch-1 into main

View File

@@ -192,7 +192,7 @@ func (ac *AccessController) checkList(matches, list []string) bool {
if strings.HasSuffix(item, "*") {
prefix := strings.TrimSuffix(item, "*")
if strings.HasPrefix(fullRepo, prefix) {
if strings.HasPrefix(repoName, prefix) {
return true
}
}