Added missing return statement

This commit is contained in:
Luiz Vasconcelos 2024-11-24 17:47:22 +01:00
parent 43c2abf138
commit 5cc3dcad9f
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
}
}