/** * Is enabled and allowes inline translations * * @param mixed $store * @return bool */ public function isAllowed($store = null) { if (Mage::getSingleton('core/session')->getInlineTranslationEnabled()) { return true; } return parent::isAllowed($store); }
public function testIsAllowed() { $this->assertTrue($this->_model->isAllowed()); $this->assertTrue($this->_model->isAllowed($this->_storeId)); $this->assertTrue($this->_model->isAllowed(Mage::app()->getStore($this->_storeId))); }