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()
|
||||
return
|
||||
}
|
||||
if !user.CanWebdavRead() {
|
||||
if user.Disabled || !user.CanWebdavRead() {
|
||||
if c.Request.Method == "OPTIONS" {
|
||||
c.Set("user", guest)
|
||||
c.Next()
|
||||
|
Reference in New Issue
Block a user