mirror of
https://github.com/grafana/grafana.git
synced 2024-11-28 03:34:15 -06:00
Auth: Fix missing authLabels from user list page (#94612)
Fix slice initialization
This commit is contained in:
parent
01897edccd
commit
62738dd5c8
@ -112,7 +112,7 @@ func (s *OSSService) SearchUser(c *contextmodel.ReqContext) (*user.SearchUserQue
|
||||
|
||||
for _, user := range res.Users {
|
||||
user.AvatarURL = dtos.GetGravatarUrl(s.cfg, user.Email)
|
||||
user.AuthLabels = make([]string, len(user.AuthModule))
|
||||
user.AuthLabels = make([]string, 0, len(user.AuthModule))
|
||||
for _, authModule := range user.AuthModule {
|
||||
user.AuthLabels = append(user.AuthLabels, login.GetAuthProviderLabel(authModule))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user