Skip to content

Commit

Permalink
Add all groups
Browse files Browse the repository at this point in the history
  • Loading branch information
Oscariremma committed Nov 12, 2024
1 parent 629de7c commit a045eb8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/pkg/services/auth/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ func (superGroup AuthSuperGroup) ToGroups() model.Groups {
Type: superGroup.Type,
Aliases: []string{},
}

}
memberGroupPostGroup.Members = append(memberGroupPostGroup.Members, memberEmail)
memberGroupPostGroups[member.Post.EmailPrefix] = memberGroupPostGroup
Expand All @@ -117,6 +116,9 @@ func (superGroup AuthSuperGroup) ToGroups() model.Groups {
memberGroup.Members = append(memberGroup.Members, memberEmail)
}
outerGroup.Members = append(outerGroup.Members, memberGroup.Email)
for _, memberGroupPostGroup := range memberGroupPostGroups {
groups = append(groups, memberGroupPostGroup)
}
groups = append(groups, memberGroup)
}
for _, postGroup := range superGroupPostGroups {
Expand Down

0 comments on commit a045eb8

Please sign in to comment.