public function dispatch(RequestInterface $request)
    {
        if (!$request->getParam('section')) {
            $request->setParam('section', $this->configStructure->getFirstSection()->getId());
        }

        return parent::dispatch($request);
    }
public function dispatch(RequestInterface $request)
    {
        if (!$request->getParam('section')) {
            $request->setParam('section', $this->configStructure->getFirstSection()->getId());
        }

        return parent::dispatch($request);
    }
public function dispatch ( RequestInterface $ request ) { if ( ! $ request -> getParam ( 'section' ) ) { $ request -> setParam ( 'section' , $ this -> configStructure -> getFirstSection ( ) -> getId ( ) ) ; } return parent :: dispatch ( $ request ) ; }
Check if current section is found and is allowed

@param RequestInterface $request The current request

@return \Magento\Framework\App\ResponseInterface
Check if current section is found and is allowed