Compare commits

...

2 Commits

Author SHA1 Message Date
luiz 2343eb2000 Merge pull request 'Added missing return statement' (#6) from bugfix/adminRoute into main
Reviewed-on: #6
2024-11-24 16:48:10 +00:00
Luiz Vasconcelos 5cc3dcad9f Added missing return statement 2024-11-24 17:47:22 +01: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
}
}