*/ class Mage_Adminhtml_SurveyController extends Mage_Adminhtml_Controller_Action { /** * Index Action * */ public function indexAction() { if ($this->getRequest()->getParam('isAjax', false)) { Mage_AdminNotification_Model_Survey::saveSurveyViewed(true); } $this->getResponse()->setBody(Zend_Json::encode(array('survey_decision_saved' => 1))); } /** * Check if user has enough privileges * * @return boolean */ protected function _isAllowed() { return Mage::getSingleton('admin/session')->isAllowed('all'); } }