Skip to content
Snippets Groups Projects
Commit 9ffeccb4 authored by Demian Katz's avatar Demian Katz
Browse files

Don't allow cart access when cart is disabled.

parent 53319228
No related merge requests found
...@@ -102,6 +102,11 @@ class CartController extends AbstractBase ...@@ -102,6 +102,11 @@ class CartController extends AbstractBase
*/ */
public function cartAction() public function cartAction()
{ {
// Bail out if cart is disabled.
if (!$this->getCart()->isActive()) {
return $this->redirect()->toRoute('home');
}
$ids = is_null($this->params()->fromPost('selectAll')) $ids = is_null($this->params()->fromPost('selectAll'))
? $this->params()->fromPost('ids') ? $this->params()->fromPost('ids')
: $this->params()->fromPost('idsAll'); : $this->params()->fromPost('idsAll');
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment