Compare commits

...

3 Commits

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