Classes/ViewHelpers/Security/IfAccesOnControllersActionViewHelper.php
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;
		}
	}
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;
		}
	}
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 ; } }
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
Check if we currently have access to the given resource