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 } }