mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
comment out use of voter for menu entry, new way of handling rights?
This commit is contained in:
parent
8411c909ff
commit
cb4059e5c3
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user