mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
fix error when no access to activity in timeline query
This commit is contained in:
parent
a07e26df5e
commit
7b7d30797f
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user