mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-17 10:55:12 +00:00
fix(api): implement missing filters on ListAdministrators endpoint (#11319)
# Which Problems Are Solved A customer reported that multiple filters on the ListAdministrators endpoint were returning a `List.Query.Invalid` error. They were missing the implementation. # How the Problems Are Solved Implement `and`, `or`, `not` and `role` filters. # Additional Changes None # Additional Context - reported by customer - requires backport to v4.x
This commit is contained in:
@@ -106,6 +106,10 @@ func NewMembershipIsIAMQuery() (SearchQuery, error) {
|
||||
return NewNotNullQuery(InstanceMemberIAMID)
|
||||
}
|
||||
|
||||
func NewMembershipRoleQuery(role string) (SearchQuery, error) {
|
||||
return NewTextQuery(membershipRoles, role, TextListContains)
|
||||
}
|
||||
|
||||
func (q *MembershipSearchQuery) toQuery(query sq.SelectBuilder) sq.SelectBuilder {
|
||||
query = q.SearchRequest.toQuery(query)
|
||||
for _, q := range q.Queries {
|
||||
|
||||
Reference in New Issue
Block a user