/** * */ public function beforeMethod() { parent::beforeMethod(); if (!$this->loggedInUser->can('get_app_params')) { $this->flashMessages->danger($this->lang->say('access denied')); $this->response->redirect("/"); } }
/** * */ public function beforeMethod() { parent::setupJsonResponse(); }