Commit f7f678f0 authored by Julien Fastré's avatar Julien Fastré

add `persons` only if not empty

parent 4f78b8fb
Pipeline #81142 failed with stages
in 57 seconds
......@@ -71,9 +71,12 @@ class PrivacyEventSubscriber implements EventSubscriberInterface
'by_user' => $this->token->getToken()->getUser()->getUsername(),
'by_user_id' => $this->token->getToken()->getUser()->getId(),
'person_id' => $event->getPerson()->getId(),
'persons' => $persons,
if ($event->hasPersons()) {
$involved['persons'] = $event->getPersons();
"[Privacy Event] A Person Folder has been viewed",
array_merge($involved, $event->getArgs())
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment