unify CSRF token usage in comment sections (#4986)

This commit is contained in:
Kevin Papst
2024-07-23 08:33:02 +02:00
committed by GitHub
parent 7e1025d61d
commit 8b06ca9d10
5 changed files with 13 additions and 13 deletions

View File

@@ -166,7 +166,7 @@
{% if comments is not null %}
{% set options = {'form': commentForm, 'comments': comments} %}
{% if can_edit %}
{% set options = options|merge({'route_pin': 'project_comment_pin', 'route_delete': 'project_comment_delete', 'csrf_delete': 'project.delete_comment', 'csrf_pin': 'project.pin_comment'}) %}
{% set options = options|merge({'route_pin': 'project_comment_pin', 'route_delete': 'project_comment_delete'}) %}
{% endif %}
{{ include('embeds/comments.html.twig', options) }}
{% endif %}