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