Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
parent
70f8c3be6c
commit
75e52a6bf5
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ func WebDAVAuth(conf *config.Config) gin.HandlerFunc {
|
|||
}
|
||||
|
||||
// Allow webdav access based on the auth token or secret provided?
|
||||
if sess, user, sid, cached := WebDAVAuthSession(c, authToken); cached && user != nil {
|
||||
if sess, user, sid, cached := WebDAVAuthSession(c, authToken); user != nil && cached {
|
||||
// Add user to request context and return to signal successful authentication.
|
||||
c.Set(gin.AuthUserKey, user)
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue