I have a entity browser which list my produts. The products are shown only if they are published.
But for some reason, if the product was added before the filtered "publish" was set, the product is still displayed but only for the admin.
How can I prevent the admin to see it ?
EDIT :
For now, I’ve added a manual check in twig, but i think there’s a cleaner way to do it
{% for produit in produits %} {% if produit['#commerce_product'].published %} {{ produit }} {% endif %} {% endfor %}