mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
The StoredObjectVoter.php has been refactorized to handle context-specific voters.\ This way we can check if the context-specific voter should handle the authorization or not.\ If not, there is a simple fallback to check on the USER_ROLE.
15 lines
478 B
YAML
15 lines
478 B
YAML
services:
|
|
_defaults:
|
|
autowire: true
|
|
autoconfigure: true
|
|
Chill\DocStoreBundle\Security\Authorization\StoredObjectVoter:
|
|
arguments:
|
|
$storedObjectVoters:
|
|
# context specific voters
|
|
- '@accompanying_course_document_voter'
|
|
tags:
|
|
- { name: security.voter }
|
|
|
|
accompanying_course_document_voter:
|
|
class: Chill\DocStoreBundle\Security\Authorization\AccompanyingCourseDocumentVoter
|