fix access to PDF protocol as a non FET user.

This commit is contained in:
2021-06-07 19:03:39 +00:00
parent 9e855cf877
commit 02960099fd
12 changed files with 54 additions and 30 deletions

View File

@@ -78,7 +78,7 @@
</div>
<div class="cell medium-4">
<a href="{% url 'posts.show' next %}">Nächster Artikel <span class="nav fa fa-chevron-right fa-1x"></span></a><br>
<a href="{% url 'posts:posts.show' next %}">Nächster Artikel <span class="nav fa fa-chevron-right fa-1x"></span></a><br>
{% if request.user.is_authenticated %}
<hr>
@@ -86,7 +86,7 @@
{% if post.has_agenda %}
<a href="{{ ep_agenda_link }}">Agenda</a>
{% if filename_agenda %}
<a href="{% url 'posts.show_pdf' post.slug filename_agenda %}">
<a href="{% url 'posts:show_pdf_agenda' post.slug %}">
<i class="far fa-file-pdf"></i>
</a>
{% endif %}
@@ -96,7 +96,7 @@
{% if post.has_protocol %}
<a href="{{ ep_protocol_link }}">Protokoll</a>
{% if filename_protocol %}
<a href="{% url 'posts.show_pdf' post.slug filename_protocol %}">
<a href="{% url 'posts:show_pdf_protocol' post.slug %}">
<i class="far fa-file-pdf"></i>
</a>
{% endif %}