/** * Add filter by store views to a collection * * @param Mage_Core_Model_Mysql4_Collection_Abstract $collection */ public function addStoreFilter($collection) { $collection->addStoreFilter($this->_role->getStoreIds()); }