fix somes validation and acompanying period voter

This commit is contained in:
2022-05-02 16:22:25 +02:00
parent 8113fddcb2
commit 065b10b877
4 changed files with 54 additions and 31 deletions

View File

@@ -65,15 +65,15 @@ class SectionMenuBuilder implements LocalMenuBuilderInterface
]);
}
// if ($this->authorizationChecker->isGranted(AccompanyingPeriodVoter::REASSIGN_BULK, null)) {
$menu->addChild($this->translator->trans('Accompanying courses of users'), [
if ($this->authorizationChecker->isGranted(AccompanyingPeriodVoter::REASSIGN_BULK, null)) {
$menu->addChild($this->translator->trans('reassign.Bulk reassign'), [
'route' => 'chill_course_list_reassign',
])
->setExtras([
'order' => 12,
'icons' => ['task'],
'order' => 40,
'icons' => [],
]);
// }
}
}
public static function getMenuIds(): array