Пример #1
0
 protected function _validateFormKey()
 {
     if ($this->getRequest()->getActionName() == 'upload') {
         return true;
     } else {
         return parent::_validateFormKey();
     }
 }
Пример #2
0
 public function preDispatch()
 {
     Mage::getSingleton('core/session', array('name' => 'adminhtml'));
     if (!Mage::getSingleton('admin/session')->isLoggedIn()) {
         $this->_notifyAboutExpiry();
     }
     return parent::preDispatch();
 }