mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 23:00:55 +03:00
webdav: fix proppatch handling
also respect login delay for cached webdav users and check the home dir as soon as the user authenticates Fixes #239
This commit is contained in:
@@ -143,7 +143,8 @@ func (c *Connection) OpenFile(ctx context.Context, name string, flag int, perm o
|
||||
if err != nil {
|
||||
return nil, c.GetFsError(err)
|
||||
}
|
||||
if flag == os.O_RDONLY {
|
||||
|
||||
if flag == os.O_RDONLY || c.request.Method == "PROPPATCH" {
|
||||
// Download, Stat, Readdir or simply open/close
|
||||
return c.getFile(p, name)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user