mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
handle multiple person in privacy logs
This commit is contained in:
parent
943cd9f31e
commit
c392fad540
@ -25,6 +25,7 @@ namespace Chill\PersonBundle\Privacy;
|
||||
use Psr\Log\LoggerInterface;
|
||||
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
||||
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
|
||||
use Chill\PersonBundle\Entity\Person;
|
||||
|
||||
class PrivacyEventSubscriber implements EventSubscriberInterface
|
||||
{
|
||||
@ -74,7 +75,10 @@ class PrivacyEventSubscriber implements EventSubscriberInterface
|
||||
);
|
||||
|
||||
if ($event->hasPersons()) {
|
||||
$involved['persons'] = $event->getPersons();
|
||||
$involved['persons'] = \array_map(
|
||||
function(Person $p) { return $p->getId(); },
|
||||
$event->getPersons()
|
||||
);
|
||||
}
|
||||
|
||||
$this->logger->notice(
|
||||
|
Loading…
x
Reference in New Issue
Block a user