Skip to content

Commit

Permalink
Ignore empty Auth groups
Browse files Browse the repository at this point in the history
  • Loading branch information
Oscariremma committed Nov 12, 2024
1 parent a045eb8 commit c4ceb98
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/pkg/services/auth/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ func (superGroup AuthSuperGroup) ToGroups() model.Groups {
}
memberGroupPostGroups := make(map[string]model.Group)

if group.Members == nil || len(group.Members) == 0 {
continue
}

for _, member := range group.Members {

var memberEmail string
Expand Down

0 comments on commit c4ceb98

Please sign in to comment.