protected function controlAccess($permission)
    {
        if (isset($this->uid) && !$this->user->access($permission, $this->uid)) {
            $this->errorAndExit($this->text('No access'));
        }
    }
protected function controlAccess($permission)
    {
        if (isset($this->uid) && !$this->user->access($permission, $this->uid)) {
            $this->errorAndExit($this->text('No access'));
        }
    }
protected function controlAccess ( $ permission ) { if ( isset ( $ this -> uid ) && ! $ this -> user -> access ( $ permission , $ this -> uid ) ) { $ this -> errorAndExit ( $ this -> text ( 'No access' ) ) ; } }
Control access to the route
@param string $permission
Control access to the route