From 5477a70c8425c7b13d4b695df79e1c3561000bcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 6 Apr 2022 12:41:50 +0200 Subject: [PATCH] add ACL around creation of work in course --- .../views/AccompanyingCourseWork/index.html.twig | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/index.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/index.html.twig index 50301f90c..6956a1497 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/index.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/index.html.twig @@ -18,15 +18,7 @@

{{ block('title') }}

{% if works|length == 0 %} - {#% if is_granted('CHILL_MAIN_ACCOMPANYING_PERIOD_WORK_CREATE') %#} -

{{ 'accompanying_course_work.Any work'|trans }} - -

- {#% endif %#} - +

{{ 'accompanying_course_work.Any work'|trans }}

{% else %}
{% for w in works %} @@ -37,7 +29,7 @@ {{ chill_pagination(paginator) }} - {#% if is_granted('CHILL_MAIN_ACCOMPANYING_PERIOD_WORK_CREATE') %#} + {% if is_granted('CHILL_MAIN_ACCOMPANYING_PERIOD_WORK_CREATE') %} - {#% endif %#} + {% endif %}
{% endblock %}