From 75e52a6bf5277895750f9d38f4689e2a905dc245 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Mon, 29 Jan 2024 15:11:23 +0100 Subject: [PATCH] WebDAV: Refactor internal/server/webdav_auth.go #782 #808 Signed-off-by: Michael Mayer --- internal/server/webdav_auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/server/webdav_auth.go b/internal/server/webdav_auth.go index e88e2e9dd..258395b9c 100644 --- a/internal/server/webdav_auth.go +++ b/internal/server/webdav_auth.go @@ -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