mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-04 03:42:49 +02:00
parent
96424dac0f
commit
ee1f9093ee
10 changed files with 59 additions and 49 deletions
|
@ -121,7 +121,7 @@ func (p *Provider) UserGroups(ctx context.Context) ([]*directory.User, error) {
|
|||
for userID, groupIDs := range userIDToGroupIDs {
|
||||
for _, groupID := range groupIDs {
|
||||
if groupName, ok := groupIDToName[groupID]; ok {
|
||||
userIDToGroupNames[userID] = append(userIDToGroupNames[userID], groupName)
|
||||
userIDToGroupNames[userID] = append(userIDToGroupNames[userID], strconv.Itoa(groupID), groupName)
|
||||
} else {
|
||||
userIDToGroupNames[userID] = append(userIDToGroupNames[userID], "NOGROUP")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue