call display403 method

This commit is contained in:
Manuel Raynaud
2013-09-12 17:13:52 +02:00
parent 0ca5af597a
commit 1daa96a57d
2 changed files with 7 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ class AddressController extends BaseFrontController
public function generateModalAction($address_id)
{
if ($this->getSecurityContext()->hasCustomerUser() === false) {
$this->accessDenied();
$this->redirect(URL::getInstance()->getIndexPage());
}
$this->checkXmlHttpRequest();
@@ -63,7 +63,7 @@ class AddressController extends BaseFrontController
public function createAction()
{
if ($this->getSecurityContext()->hasCustomerUser() === false) {
$this->accessDenied()
$this->redirect(URL::getInstance()->getIndexPage());
}
$addressCreate = new AddressCreateForm($this->getRequest());