mirror of https://github.com/Xhofe/alist
fix: upload check if disable sub folder (close #3741)
parent
d484219c48
commit
3d3f23ec9e
|
@ -35,7 +35,7 @@ func FsUp(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
}
|
||||
if !(common.CanAccess(user, meta, path, password) && (user.CanWrite() || common.CanWrite(meta, path))) {
|
||||
if !(common.CanAccess(user, meta, path, password) && (user.CanWrite() || common.CanWrite(meta, stdpath.Dir(path)))) {
|
||||
common.ErrorResp(c, errs.PermissionDenied, 403)
|
||||
c.Abort()
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue