mirror of https://github.com/Xhofe/alist
🐛 fixed checking the parent folder when checked the password of the current folder
parent
2f669ac45c
commit
59b8f1084a
|
@ -31,8 +31,7 @@ func Path(c *gin.Context) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// TODO hide or ignore?
|
// TODO hide or ignore?
|
||||||
}
|
} else if conf.CheckParent {
|
||||||
if conf.CheckParent {
|
|
||||||
if !CheckParent(filepath.Dir(req.Path), req.Password) {
|
if !CheckParent(filepath.Dir(req.Path), req.Password) {
|
||||||
ErrorResp(c, fmt.Errorf("wrong password"), 401)
|
ErrorResp(c, fmt.Errorf("wrong password"), 401)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue