hide export link for past releases and anonymous user (#78262)
gitea/scrutiny/pipeline/head This commit looks good Details

This commit is contained in:
Lauréline Guérin 2023-06-08 11:20:32 +02:00
parent b2b894ec35
commit 495639a65f
No known key found for this signature in database
GPG Key ID: 1FAB9B9B4F93D473
1 changed files with 3 additions and 1 deletions

View File

@ -18,7 +18,9 @@
{% endif %}
{% else %}
<h3>{{ day.day|date:"d/m/Y" }}</h3>
<a href="{% url 'project-summary-history-day' slug=object.slug year=day.day.year month=day.day.month day=day.day.day %}">Exporter</a>
{% if user.is_authenticated %}
<a href="{% url 'project-summary-history-day' slug=object.slug year=day.day.year month=day.day.month day=day.day.day %}">Exporter</a>
{% endif %}
{% endif %}
<p>
{% for module in day.modules.values %}