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']);
        }
    }
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']);
        }
    }
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' ] ) ; } }
Controls access to the current route
Controls access to the current route