Commit 7fba3535 authored by Julien Fastré's avatar Julien Fastré
Browse files

declare role in chill.available_roles parameter

parent f301dbdd
......@@ -97,6 +97,16 @@ class ChillReportExtension extends Extension implements PrependExtensionInterfac
$this->declareReportAsCustomizable($container);
$this->declareRouting($container);
$this->prependRoleHierarchy($container);
$this->declareRoles($container);
}
protected function declareRoles(ContainerBuilder $container)
{
$container->prependExtensionConfig('chill_main', array(
'available_roles' => array(
'CHILL_REPORT_UPDATE', 'CHILL_REPORT_SEE', 'CHILL_REPORT_CREATE'
)
));
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment