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