Merge pull request 'Added missing return statement' (#6) from bugfix/adminRoute into main

Reviewed-on: #6
This commit is contained in:
luiz 2024-11-24 16:48:10 +00:00
commit 2343eb2000
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
}
}