Added missing return statement #6

Merged
luiz merged 1 commits from bugfix/adminRoute into main 2024-11-24 16:48:11 +00:00
1 changed files with 1 additions and 0 deletions

View File

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