Fix voter for the create event permission

This commit is contained in:
Julie Lenaerts 2025-07-03 08:51:52 +02:00
parent 0244808906
commit fcb9fdd24c
2 changed files with 3 additions and 3 deletions

View File

@ -54,9 +54,9 @@ class EventVoter extends AbstractChillVoter implements ProvideRoleHierarchyInter
) { ) {
$this->voterHelper = $voterHelperFactory $this->voterHelper = $voterHelperFactory
->generate(self::class) ->generate(self::class)
->addCheckFor(null, [self::SEE]) ->addCheckFor(null, [self::SEE, self::CREATE])
->addCheckFor(Event::class, [...self::ROLES]) ->addCheckFor(Event::class, [...self::ROLES])
->addCheckFor(Person::class, [self::SEE, self::CREATE]) ->addCheckFor(Person::class, [self::SEE])
->addCheckFor(Center::class, [self::STATS]) ->addCheckFor(Center::class, [self::STATS])
->build(); ->build();
} }