mirror of
https://github.com/harness/drone.git
synced 2025-05-05 03:59:55 +08:00
Merge branch 'akp/principal-list' of _OKE5H2PQKOUfzFFDuD4FA/default/CODE/gitness (#266)
This commit is contained in:
commit
a35b5799a6
@ -61,7 +61,7 @@ func ParseUserFilter(r *http.Request) *types.UserFilter {
|
||||
|
||||
// ParsePrincipalTypes extracts the principal types from the url.
|
||||
func ParsePrincipalTypes(r *http.Request) []enum.PrincipalType {
|
||||
pTypesRaw := r.Form[QueryParamType]
|
||||
pTypesRaw := r.URL.Query()[QueryParamType]
|
||||
m := make(map[enum.PrincipalType]struct{}) // use map to eliminate duplicates
|
||||
for _, pTypeRaw := range pTypesRaw {
|
||||
if pType, ok := enum.PrincipalType(pTypeRaw).Sanitize(); ok {
|
||||
|
Loading…
Reference in New Issue
Block a user