mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 02:23:51 +00:00
Fix voter for the create event permission
This commit is contained in:
@@ -11,7 +11,7 @@ block js %}
|
|||||||
|
|
||||||
{{ filter | chill_render_filter_order_helper }}
|
{{ filter | chill_render_filter_order_helper }}
|
||||||
|
|
||||||
{% if is_granted('CHILL_EVENT_CREATE') %}
|
{% if is_granted('CHILL_EVENT_CREATE') %}
|
||||||
<ul class="record_actions">
|
<ul class="record_actions">
|
||||||
<li>
|
<li>
|
||||||
<a
|
<a
|
||||||
|
@@ -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();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user