mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-24 06:14:04 +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:
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…
x
Reference in New Issue
Block a user