mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
add persons
only if not empty
This commit is contained in:
parent
4f78b8fb54
commit
f7f678f0cb
@ -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();
|
||||
}
|
||||
|
||||
$this->logger->notice(
|
||||
"[Privacy Event] A Person Folder has been viewed",
|
||||
array_merge($involved, $event->getArgs())
|
||||
|
Loading…
x
Reference in New Issue
Block a user