diff --git a/docs/_static/img/tree/roles.png b/docs/_static/img/tree/roles.png new file mode 100644 index 0000000..444a167 Binary files /dev/null and b/docs/_static/img/tree/roles.png differ diff --git a/docs/tree/node.md b/docs/tree/node.md index ffd8811..8d0726d 100644 --- a/docs/tree/node.md +++ b/docs/tree/node.md @@ -32,6 +32,21 @@ core: - {name: 'Bar', action: 'App\Controller\OtherController::bar'} ``` +If you need to restrict the access, you can provided a list of roles in the configuration: + +```yaml title="config/packages/app.yaml" +core: + site: + security: + roles: + - {name: 'Foo role', role: 'ROLE_FOO'} + - {name: 'Bar role', role: 'ROLE_BAR'} +``` + +Then you will be able to select what roles are required: + +![](/_static/img/tree/roles.png) + ## Attributes Attributes are a collection of keys and values attached to a node (eg: class, icon, whatever you want). diff --git a/docs/users.md b/docs/users.md index c204f32..be42a6b 100644 --- a/docs/users.md +++ b/docs/users.md @@ -1,2 +1,3 @@ # Users +Murph provided a basic authentication based on the `User` entity.