Skip to content

Commit

Permalink
remove filtering for receiver type (#1445)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimoneDutto authored Nov 19, 2024
1 parent 6e86250 commit ab98ccc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions internal/jimmhttp/rebac_admin/entitlements.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ func (s *entitlementsService) ListEntitlements(ctx context.Context, params *reso

for _, entitlement := range entitlementsList {
if strings.Contains(entitlement.Entitlement, match) ||
strings.Contains(entitlement.EntityType, match) ||
strings.Contains(entitlement.ReceiverType, match) {
strings.Contains(entitlement.EntityType, match) {
entitlementsFilteredList = append(entitlementsFilteredList, entitlement)
}
}
Expand Down
2 changes: 1 addition & 1 deletion internal/jimmhttp/rebac_admin/entitlements_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ func TestEntitlements(t *testing.T) {
params.Filter = &match
entitlements, err = entitlementSvc.ListEntitlements(ctx, params)
c.Assert(err, qt.IsNil)
c.Assert(entitlements, qt.HasLen, 12)
c.Assert(entitlements, qt.HasLen, 0)
}

0 comments on commit ab98ccc

Please sign in to comment.