mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-03 21:34:59 +00:00
wip.. EVENT_SEE and _CREATE works in twig test, not in php test
This commit is contained in:
@@ -50,6 +50,13 @@
|
||||
<td>
|
||||
<ul class="record_actions">
|
||||
<li>
|
||||
{% if is_granted('CHILL_EVENT_SEE', participation.event) %}
|
||||
see {% else %} not see
|
||||
{% endif %}
|
||||
{% if is_granted('CHILL_EVENT_CREATE', participation.event) %}
|
||||
create {% else %} not create
|
||||
{% endif %}
|
||||
|
||||
{% if is_granted('CHILL_EVENT_SEE_DETAILS', participation.event) %}
|
||||
<a href="{{ path('chill_event__event_show', { 'event_id' : participation.event.id } ) }}" class="sc-button black">
|
||||
{{ 'See'|trans }}
|
||||
|
Reference in New Issue
Block a user