Disable quick_review_voting.js for guest users

This commit is contained in:
rubenwardy 2023-08-22 00:48:08 +01:00
parent 4df15d6ff2
commit 5f1d0ed946
5 changed files with 15 additions and 5 deletions

@ -21,7 +21,9 @@
}
}
</script>
<script src="/static/quick_review_voting.js"></script>
{% if current_user.is_authenticated %}
<script src="/static/quick_review_voting.js"></script>
{% endif %}
{% endblock %}
{% block content %}

@ -5,7 +5,9 @@
{% endblock %}
{% block scriptextra %}
<script src="/static/quick_review_voting.js"></script>
{% if current_user.is_authenticated %}
<script src="/static/quick_review_voting.js"></script>
{% endif %}
{% endblock %}
{% block content %}

@ -19,7 +19,9 @@
{% block scriptextra %}
<script src="/static/video_embed.js"></script>
<script src="/static/quick_review_voting.js"></script>
{% if current_user.is_authenticated %}
<script src="/static/quick_review_voting.js"></script>
{% endif %}
{% endblock %}
{% macro render_license(license) %}

@ -26,7 +26,9 @@
{% endblock %}
{% block scriptextra %}
<script src="/static/quick_review_voting.js"></script>
{% if current_user.is_authenticated %}
<script src="/static/quick_review_voting.js"></script>
{% endif %}
{% endblock %}
{% block content %}

@ -9,7 +9,9 @@
{% endblock %}
{% block scriptextra %}
<script src="/static/quick_review_voting.js"></script>
{% if current_user.is_authenticated %}
<script src="/static/quick_review_voting.js"></script>
{% endif %}
{% endblock %}
{% block content %}