mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-30 03:23:48 +00:00
Remove usage of deprecated Role class
This commit is contained in:
@@ -141,8 +141,8 @@ class TimelineActivityProvider implements TimelineProviderInterface
|
||||
$parameters = [];
|
||||
$metadataActivity = $this->em->getClassMetadata(Activity::class);
|
||||
$associationMapping = $metadataActivity->getAssociationMapping('person');
|
||||
$role = new Role('CHILL_ACTIVITY_SEE');
|
||||
$reachableScopes = $this->helper->getReachableScopes($this->user, $role->getRole(), $person->getCenter());
|
||||
$role = 'CHILL_ACTIVITY_SEE';
|
||||
$reachableScopes = $this->helper->getReachableScopes($this->user, $role, $person->getCenter());
|
||||
$whereClause = ' {activity.person_id} = ? AND {activity.scope_id} IN ({scopes_ids}) ';
|
||||
$scopes_ids = [];
|
||||
|
||||
|
Reference in New Issue
Block a user