mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
adapta list of tasks for a person
This commit is contained in:
@@ -44,7 +44,7 @@ class ChillTaskExtension extends Extension implements PrependExtensionInterface
|
||||
$this->prependRoute($container);
|
||||
$this->prependWorkflows($container);
|
||||
}
|
||||
|
||||
|
||||
protected function prependRoute(ContainerBuilder $container)
|
||||
{
|
||||
//declare routes for task bundle
|
||||
@@ -56,17 +56,18 @@ class ChillTaskExtension extends Extension implements PrependExtensionInterface
|
||||
)
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
protected function prependAuthorization(ContainerBuilder $container)
|
||||
{
|
||||
$container->prependExtensionConfig('security', array(
|
||||
'role_hierarchy' => array(
|
||||
TaskVoter::UPDATE => [TaskVoter::SHOW],
|
||||
TaskVoter::CREATE => [TaskVoter::SHOW]
|
||||
TaskVoter::CREATE_COURSE => [TaskVoter::SHOW],
|
||||
TaskVoter::CREATE_PERSON => [TaskVoter::SHOW],
|
||||
)
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
protected function prependWorkflows(ContainerBuilder $container)
|
||||
{
|
||||
$container->prependExtensionConfig('framework', [
|
||||
|
Reference in New Issue
Block a user