Esempio n. 1
0
 protected function _isAllowed()
 {
     switch ($this->getRequest()->getActionName()) {
         case 'index':
         case 'grid':
         case 'exportCsv':
         case 'exportXml':
             return Mage::getSingleton('admin/session')->isAllowed('report/udropship/general');
         case 'item':
         case 'itemGrid':
         case 'itemExportCsv':
         case 'itemExportXml':
             return Mage::getSingleton('admin/session')->isAllowed('report/udropship/item');
     }
     return parent::_isAllowed();
 }