wip.. EVENT_SEE and _CREATE works in twig test, not in php test

This commit is contained in:
2019-01-25 15:39:44 +01:00
parent 2d295d8e43
commit 31876ee8b6
3 changed files with 24 additions and 11 deletions

View File

@@ -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 }}