mirror of https://github.com/goharbor/harbor.git
Merge 7b60ac90e3
into ec8d692fe6
This commit is contained in:
commit
adf899b6f0
|
@ -403,6 +403,10 @@ func groupsFromClaims(gp claimsProvider, k string) ([]string, bool) {
|
|||
}
|
||||
res = append(res, s)
|
||||
}
|
||||
// if remote.Groups is not a []string, but local.Groups is, this will create a fallback
|
||||
if len(res) == 0 {
|
||||
return res, false
|
||||
}
|
||||
return res, true
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue