FIX [rights][household] check rights to be able to create a parcours from within household

This commit is contained in:
Julie Lenaerts 2023-06-07 13:25:48 +02:00
parent 77f8cf0e1a
commit c73beef3af

View File

@ -41,12 +41,14 @@
</a>
</li>
{# TODO: add ACL to check if user is allowed to edit household? #}
{% if is_granted('CHILL_PERSON_HOUSEHOLD_EDIT', household) %}
<li>
<a class="btn btn-create"
href="{{ path ('chill_household_accompanying_course_new', {'household_id' : household.id } ) }}" role="button">
{{ 'Create an accompanying period'|trans }}
</a>
</li>
{% endif %}
</ul>
</div>