comment out use of voter for menu entry, new way of handling rights?

This commit is contained in:
Julie Lenaerts 2021-09-28 14:37:27 +02:00
parent 8411c909ff
commit cb4059e5c3

View File

@ -89,7 +89,7 @@ class MenuBuilder implements LocalMenuBuilderInterface
$course = $parameters['accompanyingCourse'];
if ($this->authorizationChecker->isGranted(TaskVoter::SHOW, $course)) {
// if ($this->authorizationChecker->isGranted(TaskVoter::SHOW, $course)) {
$menu->addChild(
$this->translator->trans('Tasks'), [
'route' => 'chill_task_singletask_courselist',
@ -97,7 +97,7 @@ class MenuBuilder implements LocalMenuBuilderInterface
[ 'course_id' => $course->getId() ]
])
->setExtra('order', 400);
}
// }
}
public static function getMenuIds(): array