mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-20 17:24:25 +00:00
Now, the bundle dispatch an event `chill_task.vote` to override the authorization on voting on a task. If a subscriber or listener emits a vote on the event, this vote override the logic defined for the default task.
12 lines
417 B
YAML
12 lines
417 B
YAML
services:
|
|
chill_task.task_voter:
|
|
class: Chill\TaskBundle\Security\Authorization\TaskVoter
|
|
arguments:
|
|
- "@security.access.decision_manager"
|
|
- "@chill.main.security.authorization.helper"
|
|
- '@Symfony\Component\EventDispatcher\EventDispatcherInterface'
|
|
- "@logger"
|
|
tags:
|
|
- { name: security.voter }
|
|
- { name: chill.role }
|