From 5cc3dcad9f8a0367cfa58d39dc7f4a3d60800bec Mon Sep 17 00:00:00 2001 From: Luiz Vasconcelos Date: Sun, 24 Nov 2024 17:47:22 +0100 Subject: [PATCH] Added missing return statement --- middleware.go | 1 + 1 file changed, 1 insertion(+) diff --git a/middleware.go b/middleware.go index d792090..5ecfbe4 100644 --- a/middleware.go +++ b/middleware.go @@ -103,6 +103,7 @@ func (m *Middleware) AdminProtectedRoute(next http.Handler) http.Handler { user := userOptional.(UserClaims) if IsAdmin(user.Groups) { next.ServeHTTP(w, r) + return } }