/**
* Logs calls and result of isPrivilegeTargetGranted()
*
* @Flow\After("method(Neos\Flow\Security\Authorization\PrivilegeManager->isPrivilegeTargetGranted())")
* @param JoinPointInterface $joinPoint
* @return void
*/
public function logPrivilegeAccessDecisions(JoinPointInterface $joinPoint)
{
$decision = $joinPoint->getResult() === true ? 'GRANTED' : 'DENIED';
$message = sprintf('Decided "%s" on privilege "%s".', $decision, $joinPoint->getMethodArgument('privilegeTargetIdentifier'));
$this->securityLogger->log($message, \LOG_INFO);
}