mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 05:44:24 +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);
|
$role);
|
||||||
$associationMapping = $metadataActivity->getAssociationMapping('person');
|
$associationMapping = $metadataActivity->getAssociationMapping('person');
|
||||||
|
|
||||||
|
if (count($reachableCenters) === 0) {
|
||||||
|
return 'FALSE = TRUE';
|
||||||
|
}
|
||||||
|
|
||||||
// we start with activities having the person_id linked to person
|
// we start with activities having the person_id linked to person
|
||||||
// (currently only context "person" is supported)
|
// (currently only context "person" is supported)
|
||||||
$whereClause = sprintf('%s = %d',
|
$whereClause = sprintf('%s = %d',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user