mirror of
https://github.com/AlistGo/alist.git
synced 2025-07-10 18:39:48 +08:00
fix(webdav): disabled
is not working in webdav (#3659)
A disabled user with webdav permission can use webdav normally, which is not allowed.
This commit is contained in:
@ -68,7 +68,7 @@ func WebDAVAuth(c *gin.Context) {
|
|||||||
c.Abort()
|
c.Abort()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if !user.CanWebdavRead() {
|
if user.Disabled || !user.CanWebdavRead() {
|
||||||
if c.Request.Method == "OPTIONS" {
|
if c.Request.Method == "OPTIONS" {
|
||||||
c.Set("user", guest)
|
c.Set("user", guest)
|
||||||
c.Next()
|
c.Next()
|
||||||
|
Reference in New Issue
Block a user