Only show rate action for logged in users

This commit is contained in:
Mouse Reeve 2021-01-04 16:50:58 -08:00
parent 10523e38e8
commit 89e2e75c0b

View file

@ -1,4 +1,5 @@
{% load bookwyrm_tags %}
{% if request.user.is_authenticated %}
<span class="is-sr-only">Leave a rating</span>
<div class="field is-grouped stars rate-stars">
{% for i in '12345'|make_list %}
@ -14,3 +15,4 @@
</form>
{% endfor %}
</div>
{% endif %}