fixes #116: strip complete list of registered persons from a person events

This commit is contained in:
Davide Alberani 2016-05-15 11:52:59 +02:00
parent 17a2412201
commit 9fef909d1d

View file

@ -377,6 +377,8 @@ class PersonsHandler(CollectionHandler):
if str(persons.get('person_id')) == id_:
person_data = persons
break
if 'persons' in event:
del event['persons']
event['person_data'] = person_data
if resource_id and events:
return events[0]