mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-24 06:14:04 +08:00
🐛 fixed checking the parent folder when checked the password of the current folder
This commit is contained in:
parent
2f669ac45c
commit
59b8f1084a
@ -31,8 +31,7 @@ func Path(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
// TODO hide or ignore?
|
||||
}
|
||||
if conf.CheckParent {
|
||||
} else if conf.CheckParent {
|
||||
if !CheckParent(filepath.Dir(req.Path), req.Password) {
|
||||
ErrorResp(c, fmt.Errorf("wrong password"), 401)
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user