From 59b8f1084aad3a73a2893de54a2a2a12157db68d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=AE=E5=87=89?= <927625802@qq.com> Date: Thu, 25 Nov 2021 16:24:39 +0800 Subject: [PATCH] :bug: fixed checking the parent folder when checked the password of the current folder --- server/path.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/path.go b/server/path.go index e503ce3c..1fb2f295 100644 --- a/server/path.go +++ b/server/path.go @@ -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