public function addLink($name, $path, $label, $urlParams = array()) { if (in_array($name, $this->_deprecated)) { return; } parent::addLink($name, $path, $label, $urlParams); }
public function addLink($name, $path, $label, $urlParams = array()) { $isAddLink = true; if ('aitloyalty' == $name) { $iStoreId = Mage::app()->getStore()->getId(); $iSiteId = Mage::app()->getWebsite()->getId(); /* */ $performer = Aitoc_Aitsys_Abstract_Service::get()->platform()->getModule('Aitoc_Aitloyalty')->getLicense()->getPerformer(); $ruler = $performer->getRuler(); if (!($ruler->checkRule('store', $iStoreId, 'store') || $ruler->checkRule('store', $iSiteId, 'website'))) { $isAddLink = false; } /* */ } if ($isAddLink) { parent::addLink($name, $path, $label, $urlParams); } return $this; }