How to get data for an entity (for example customer) from eav_attribute table to be shown in Customer Grid for admin
I have extended Magento’s customer information form to store an additional attribute for customer. Lets call it ‘customer_referrer_id’. I have a role ‘referrer ‘ who has access to customer grid and order grid only. But, I want to restrict a referrer to see only those customers in the grid who have the customer_referrer_id set as the referrer’s id who has logged in. Similarly for orders, the logged in referrer shall be able to see only those orders made by customers who have customer_referrer_id = loggedin_referrer_id. I already know how to override a module and that I have to mainly override