mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-18 16:24:24 +00:00
git status add role hierarchy
This commit is contained in:
parent
eb066b86aa
commit
b7a17af682
@ -76,6 +76,16 @@ class ChillReportExtension extends Extension implements PrependExtensionInterfac
|
||||
)
|
||||
));
|
||||
}
|
||||
|
||||
protected function prependRoleHierarchy(ContainerBuilder $container)
|
||||
{
|
||||
$container->prependExtensionConfig('security', array(
|
||||
'role_hierarchy' => array(
|
||||
'CHILL_REPORT_UPDATE' => array('CHILL_REPORT_SEE'),
|
||||
'CHILL_REPORT_CREATE' => array('CHILL_REPORT_SEE')
|
||||
)
|
||||
));
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
@ -86,5 +96,7 @@ class ChillReportExtension extends Extension implements PrependExtensionInterfac
|
||||
{
|
||||
$this->declareReportAsCustomizable($container);
|
||||
$this->declareRouting($container);
|
||||
$this->prependRoleHierarchy($container);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user