Skip to content

Commit

Permalink
fix: fix groups access
Browse files Browse the repository at this point in the history
  • Loading branch information
saman2000hoseini committed Oct 25, 2023
1 parent e5b485a commit dca4029
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/hubble-middleware/handler/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ func (h *ProjectHandler) getUserProjects(username string, groups []string) ([]st

if len(groups) > 0 {
h.k8sUserConfig.Impersonate.Groups = groups
} else {
h.k8sUserConfig.Impersonate.Groups = []string{}
}

projectClientset, err := projectv1.NewForConfig(&h.k8sUserConfig)
Expand Down

0 comments on commit dca4029

Please sign in to comment.