code: protected function hasAccessToAction($packageKey, $subpackageKey, $controllerName, $actionName) {
  		$actionControllerName = $this->router->getControllerObjectName($packageKey, $subpackageKey, $controllerName);
  
  		try {
  			return $this->privilegeManager->isGranted(
  					'Neos\Flow\Security\Authorization\Privilege\Method\MethodPrivilege',
  					new MethodPrivilegeSubject(
  							new JoinPoint(
  									NULL,
  									$actionControllerName,
  									$actionName . 'Action',
  									array()
  							)
  					)
  			);
  		} catch(AccessDeniedException $e) {
  			return FALSE;
  		}
  	}
docs: Check if we currently have access to the given resource
  
  @param $packageKey
  @param $subpackageKey
  @param $controllerName
  @param $actionName
  @return boolean TRUE if we currently have access to the given action