feat(account): Use new filterable function to support filtering

pull/2031/head
Timothy Messier 4 years ago committed by Johan Brandhorst-Satzkorn
parent 3d58ce5f5c
commit 349e32afe4

@ -168,7 +168,11 @@ func (s Service) ListAccounts(ctx context.Context, req *pbs.ListAccountsRequest)
// This comes last so that we can use item fields in the filter after
// the allowed fields are populated above
if filter.Match(item) {
filterable, err := subtypes.Filterable(item)
if err != nil {
return nil, err
}
if filter.Match(filterable) {
finalItems = append(finalItems, item)
}
}

Loading…
Cancel
Save