Ajout redirection lorsque déconnecté pour une requête ajax

This commit is contained in:
Michael RICOIS 2011-09-09 12:27:28 +00:00
parent 7ad5d38cba
commit 3e045c2999

View File

@ -60,12 +60,10 @@ class Application_Controller_Plugin_Auth extends Zend_Controller_Plugin_Abstract
$session->url = $_SERVER['REQUEST_URI'];
$layout = Zend_Layout::getMVCInstance();
if (!$layout->isEnabled())
{
if (!$layout->isEnabled()){
$this->_response->setRedirect('/user/logout')->sendResponse();
}
$this->_response->setRedirect('/user/login')->sendResponse();
}
$this->_response->setRedirect('/user/login')->sendResponse();
//Authentifié => on met à jour la session
} else {