mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 10:33:49 +00:00
apply new role on accompanying period
This commit is contained in:
@@ -40,19 +40,11 @@ class PersonVoter extends AbstractChillVoter implements ProvideRoleHierarchyInte
|
||||
const LISTS = 'CHILL_PERSON_LISTS';
|
||||
const DUPLICATE = 'CHILL_PERSON_DUPLICATE';
|
||||
|
||||
protected AuthorizationHelper $helper;
|
||||
|
||||
protected CenterResolverDispatcher $centerResolverDispatcher;
|
||||
|
||||
protected VoterHelperInterface $voter;
|
||||
|
||||
public function __construct(
|
||||
AuthorizationHelper $helper,
|
||||
CenterResolverDispatcher $centerResolverDispatcher,
|
||||
VoterHelperFactoryInterface $voterFactory
|
||||
) {
|
||||
$this->helper = $helper;
|
||||
$this->centerResolverDispatcher = $centerResolverDispatcher;
|
||||
$this->voter = $voterFactory
|
||||
->generate(self::class)
|
||||
->addCheckFor(Center::class, [self::STATS, self::LISTS, self::DUPLICATE])
|
||||
|
Reference in New Issue
Block a user