mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
FIX [rights][household] check rights to be able to create a parcours from within household
This commit is contained in:
parent
77f8cf0e1a
commit
c73beef3af
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user