Skip to content

Commit

Permalink
fix(webdav): disabled is not working in webdav (#3659)
Browse files Browse the repository at this point in the history
A disabled user with webdav permission can use webdav normally, which is not allowed.
  • Loading branch information
karbobc authored Feb 28, 2023
1 parent c9c4d6b commit 93dd768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/webdav.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 93dd768

Please sign in to comment.