fix
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
package auth
|
||||
|
||||
func CheckBlacklist(fullrepo string) bool {
|
||||
if fullrepo == "test/test1" {
|
||||
logw("%s in blacklist", fullrepo)
|
||||
return true
|
||||
func CheckBlacklist(fullrepo string, blist []string) bool {
|
||||
for _, blocked := range blist {
|
||||
if blocked == fullrepo {
|
||||
return true
|
||||
}
|
||||
}
|
||||
logw("%s not in blacklist", fullrepo)
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user