This commit is contained in:
wjqserver 2025-06-05 20:14:58 +08:00
parent 1370617f5b
commit 6be6e1ba2c
14 changed files with 49 additions and 60 deletions

View file

@ -10,7 +10,9 @@ import (
)
func listCheck(cfg *config.Config, c *app.RequestContext, user string, repo string, rawPath string) bool {
if cfg.Auth.ForceAllowApi && cfg.Auth.ForceAllowApiPassList {
return false
}
// 白名单检查
if cfg.Whitelist.Enabled {
whitelist := auth.CheckWhitelist(user, repo)