From 053a55c1f3a6d4f7a29847f3bd1810d147deb80f Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 20 Mar 2024 14:28:46 -0400 Subject: [PATCH] fix: invert check --- api/middleware/middleware.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/middleware/middleware.go b/api/middleware/middleware.go index 8914fba..7514b5a 100644 --- a/api/middleware/middleware.go +++ b/api/middleware/middleware.go @@ -147,7 +147,7 @@ func AuthMiddleware(options AuthMiddlewareOptions) func(http.Handler) http.Handl unauthorized = false } - if unauthorized && audList == nil { + if !unauthorized && audList == nil { if audList == nil { var claim jwt.RegisteredClaims