rajout du voter, pour document et action dans la notif -> affiche les documents mais aussi le fais de partager dans notification create

This commit is contained in:
Lucas Silva
2023-03-23 14:59:32 +01:00
parent f4a7145627
commit e850f67b00
5 changed files with 19 additions and 20 deletions

View File

@@ -6,9 +6,7 @@
{% endmacro %}
{% if work is not null %}
<div class="flex-table">
{% if is_granted('CHILL_PERSON_ACCOMPANYING_PERIOD_SEE', work) %}
{% else %}
{% endif %}
{% if is_granted('CHILL_MAIN_ACCOMPANYING_PERIOD_WORK_SEE', work) %}
{% include 'ChillPersonBundle:AccompanyingCourseWork:_item.html.twig' with {
'itemBlocClass': 'bg-chill-llight-gray',
'displayAction': true,
@@ -16,10 +14,12 @@
'displayFontSmall': true,
'w': work
} %}
{% else %}
<div class="alert alert-warning border-warning border-1">
{{ 'This is the minimal period details'|trans ~ ': ' ~ work.id }}<br>
{{ 'You are getting a notification for a period you are not allowed to see'|trans }}
</div>
{% endif %}
</div>
{% else %}
<div class="alert alert-warning border-warning border-1">