mirror of https://github.com/Xhofe/alist
fix(webdav): `disabled` is not working in webdav (#3659)
A disabled user with webdav permission can use webdav normally, which is not allowed.pull/3665/head
parent
c9c4d6bc7e
commit
93dd768234
|
@ -68,7 +68,7 @@ func WebDAVAuth(c *gin.Context) {
|
|||
c.Abort()
|
||||
return
|
||||
}
|
||||
if !user.CanWebdavRead() {
|
||||
if user.Disabled || !user.CanWebdavRead() {
|
||||
if c.Request.Method == "OPTIONS" {
|
||||
c.Set("user", guest)
|
||||
c.Next()
|
||||
|
|
Loading…
Reference in New Issue