This commit is contained in:
parent
ac57b993f8
commit
44f8da3750
BIN
docs/_static/img/tree/roles.png
vendored
Normal file
BIN
docs/_static/img/tree/roles.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 40 KiB |
|
@ -32,6 +32,21 @@ core:
|
||||||
- {name: 'Bar', action: 'App\Controller\OtherController::bar'}
|
- {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
|
||||||
|
|
||||||
Attributes are a collection of keys and values attached to a node (eg: class, icon, whatever you want).
|
Attributes are a collection of keys and values attached to a node (eg: class, icon, whatever you want).
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
# Users
|
# Users
|
||||||
|
|
||||||
|
Murph provided a basic authentication based on the `User` entity.
|
||||||
|
|
Loading…
Reference in a new issue