I just moved this method from model/product.rb to  auth/product.rb  since only the auth code was referring to it. Anyway that code is generating the following sql
```sql
SELECT katello_products.id FROM "katello_products" INNER JOIN "katello_providers" ON "katello_providers"."id" = "katello_products"."provider_id" WHERE "katello_products"."provider_id" IN (2, 1) AND "katello_providers"."organization_id" = 1 AND ((katello_providers.provider_type ='Custom') OR (katello_providers.provider_type ='Anonymous') OR (katello_providers.provider_type ='Red Hat' AND katello_products.id in (SELECT product_id FROM "katello_repositories" WHERE "katello_repositories"."environment_id" = 1 ORDER BY katello_repositories.name ASC)))
```
we need to say "return true if provider is not redhat" else if its redhat check for enabled. Only mod I can do here is change the custom and anonymous to "not redhat"