Commit d5da26d7 authored by ale's avatar ale

Tiny fix

parent 254ae7dc
Pipeline #1591 passed with stages
in 1 minute and 21 seconds
......@@ -124,7 +124,7 @@ func decodeUserInfoFromMap(m map[string]string, prefix string) *UserInfo {
u.Groups = append(u.Groups, s)
i++
}
if u.Email == "" && len(u.Groups) == 0 {
if u.Email == "" && u.Shard == "" && len(u.Groups) == 0 {
return nil
}
return &u
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment