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