diff --git a/internal/jimmhttp/rebac_admin/entitlements.go b/internal/jimmhttp/rebac_admin/entitlements.go index 779d61ad8..b7c9a1459 100644 --- a/internal/jimmhttp/rebac_admin/entitlements.go +++ b/internal/jimmhttp/rebac_admin/entitlements.go @@ -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) } } diff --git a/internal/jimmhttp/rebac_admin/entitlements_test.go b/internal/jimmhttp/rebac_admin/entitlements_test.go index 2c1289a7f..2273adf56 100644 --- a/internal/jimmhttp/rebac_admin/entitlements_test.go +++ b/internal/jimmhttp/rebac_admin/entitlements_test.go @@ -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) }