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