mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-24 15:44:59 +00:00
Remove usage of deprecated Role class
This commit is contained in:
@@ -168,7 +168,7 @@ class TaskLifeCycleEventTimelineProvider implements TimelineProviderInterface
|
||||
foreach (
|
||||
$this->authorizationHelper->getReachableCenters(
|
||||
$this->security->getUser(),
|
||||
new Role(ActivityVoter::SEE_DETAILS)
|
||||
ActivityVoter::SEE_DETAILS
|
||||
) as $center
|
||||
) {
|
||||
if (false === in_array($center, $centers, true)) {
|
||||
@@ -181,7 +181,7 @@ class TaskLifeCycleEventTimelineProvider implements TimelineProviderInterface
|
||||
// we loop over circles
|
||||
$circles = $this->authorizationHelper->getReachableCircles(
|
||||
$this->security->getUser(),
|
||||
new Role(ActivityVoter::SEE_DETAILS),
|
||||
ActivityVoter::SEE_DETAILS,
|
||||
$center
|
||||
);
|
||||
$circleIds = [];
|
||||
@@ -234,7 +234,7 @@ class TaskLifeCycleEventTimelineProvider implements TimelineProviderInterface
|
||||
// we loop over circles
|
||||
$circles = $this->authorizationHelper->getReachableCircles(
|
||||
$this->security->getUser(),
|
||||
new Role(ActivityVoter::SEE_DETAILS),
|
||||
ActivityVoter::SEE_DETAILS,
|
||||
$personArg->getCenter()
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user