check acl before showing button for creating activity in person/activity

This commit is contained in:
2021-11-24 15:14:06 +00:00
parent 5be3b3f423
commit b81c834b5e
4 changed files with 6 additions and 2 deletions

View File

@@ -3,7 +3,6 @@
{% if activities|length == 0 %}
<p class="chill-no-data-statement">
{{ "There isn't any activities."|trans }}
<a href="{{ path('chill_activity_activity_new', {'person_id': person_id, 'accompanying_period_id': accompanying_course_id}) }}" class="btn btn-sm btn-create"></a>
</p>
{% else %}