public function isAllowed (Dispatcher $dispatcher): bool
{
$module = $dispatcher->getModuleName();
$controller = $dispatcher->getControllerName();
$action = $dispatcher->getActionName();
if ($module === 'main' && $controller === 'index') {
return true;
}
return false;
}