fix error when no access to activity in timeline query

This commit is contained in:
Julien Fastré 2018-08-21 14:05:25 +02:00
parent a07e26df5e
commit 7b7d30797f

View File

@ -101,6 +101,10 @@ class TimelineActivityProvider implements TimelineProviderInterface
$role);
$associationMapping = $metadataActivity->getAssociationMapping('person');
if (count($reachableCenters) === 0) {
return 'FALSE = TRUE';
}
// we start with activities having the person_id linked to person
// (currently only context "person" is supported)
$whereClause = sprintf('%s = %d',