add roles
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Simon Vieille 2023-03-12 00:44:48 +01:00
parent ac57b993f8
commit 44f8da3750
Signed by: deblan
GPG key ID: 579388D585F70417
3 changed files with 16 additions and 0 deletions

BIN
docs/_static/img/tree/roles.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

View file

@ -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).

View file

@ -1,2 +1,3 @@
# Users
Murph provided a basic authentication based on the `User` entity.