mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-01 15:45:17 +00:00
Fix SAS being accessible for non-connected users (wtf)
This commit is contained in:
parent
2bb8e0b231
commit
fe31d8cfda
@ -5301,6 +5301,10 @@ msgstr "Cet album ne contient aucune photo."
|
|||||||
msgid "preview"
|
msgid "preview"
|
||||||
msgstr "miniature"
|
msgstr "miniature"
|
||||||
|
|
||||||
|
#: sas/templates/sas/main.jinja:42
|
||||||
|
msgid "You must be logged in to see the SAS."
|
||||||
|
msgstr "Vous devez être connecté pour voir les photos."
|
||||||
|
|
||||||
#: sas/templates/sas/album.jinja:89
|
#: sas/templates/sas/album.jinja:89
|
||||||
msgid "Upload"
|
msgid "Upload"
|
||||||
msgstr "Envoyer"
|
msgstr "Envoyer"
|
||||||
|
@ -37,8 +37,13 @@
|
|||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h3>{% trans %}SAS{% endtrans %}</h3>
|
<h3>{% trans %}SAS{% endtrans %}</h3>
|
||||||
|
|
||||||
|
{% if not user.is_authenticated %}
|
||||||
|
<p>{% trans %}You must be logged in to see the SAS.{% endtrans %}</p>
|
||||||
|
{% else %}
|
||||||
<br>
|
<br>
|
||||||
<h4>{% trans %}Latest albums{% endtrans %}</h4>
|
<h4>{% trans %}Latest albums{% endtrans %}</h4>
|
||||||
|
|
||||||
<div class="albums">
|
<div class="albums">
|
||||||
{% for a in latest %}
|
{% for a in latest %}
|
||||||
{{ display_album(a) }}
|
{{ display_album(a) }}
|
||||||
@ -100,4 +105,5 @@
|
|||||||
{{ form.album_name.errors }}
|
{{ form.album_name.errors }}
|
||||||
</form>
|
</form>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user