protected function beforeAction($action, array $params) { parent::beforeAction($action, $params); return $this->can('cart.disable') ? false : null; }