mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 00:01:10 +08:00
25w44a
This commit is contained in:
parent
1370617f5b
commit
6be6e1ba2c
14 changed files with 49 additions and 60 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue