original_string: protected function controlRouteAccess()
      {
          if (!$this->config->get('cli_status', true)) {
              $this->errorAndExit($this->text('No access'));
          }
  
          $this->controlAccess('cli');
  
          if (isset($this->current_route['access'])) {
              $this->controlAccess($this->current_route['access']);
          }
      }
code: protected function controlRouteAccess()
      {
          if (!$this->config->get('cli_status', true)) {
              $this->errorAndExit($this->text('No access'));
          }
  
          $this->controlAccess('cli');
  
          if (isset($this->current_route['access'])) {
              $this->controlAccess($this->current_route['access']);
          }
      }
code_tokens: protected function controlRouteAccess ( ) { if ( ! $ this -> config -> get ( 'cli_status' , true ) ) { $ this -> errorAndExit ( $ this -> text ( 'No access' ) ) ; } $ this -> controlAccess ( 'cli' ) ; if ( isset ( $ this -> current_route [ 'access' ] ) ) { $ this -> controlAccess ( $ this -> current_route [ 'access' ] ) ; } }
docstring: Controls access to the current route
docstring_tokens: Controls access to the current route