Esempio n. 1
0
 /**
  * Check the permission to run action.
  *
  * @return boolean
  */
 protected function _isAllowed()
 {
     switch ($this->getRequest()->getActionName()) {
         case 'massDeleteVersions':
             return Mage::getSingleton('enterprise_cms/config')->canCurrentUserDeleteVersion();
             break;
         default:
             return parent::_isAllowed();
             break;
     }
 }
 /**
  * Check the permission to run it
  *
  * @return boolean
  */
 protected function _isAllowed()
 {
     if (in_array($this->getRequest()->getActionName(), array('massDelete', 'massStatus', 'massCopy'))) {
         switch ($this->getRequest()->getActionName()) {
             case 'massCopy':
             case 'massStatus':
             case 'massLayout':
                 return Mage::getSingleton('admin/session')->isAllowed('cms/page/save');
             case 'massDelete':
                 return Mage::getSingleton('admin/session')->isAllowed('cms/page/delete');
         }
     }
     return parent::_isAllowed();
 }
 public function preDispatch()
 {
     parent::preDispatch();
     Mage::getDesign()->setTheme('clever');
     return $this;
 }
 public function preDispatch()
 {
     parent::preDispatch();
     return $this;
 }