Get book page to work while not logged in.

This commit is contained in:
Adam Kelly
2020-03-27 15:05:27 +00:00
parent ea735fd570
commit b58a362df2
2 changed files with 43 additions and 28 deletions

View File

@ -25,6 +25,7 @@
</div>
</div>
{% if request.user.is_authenticated %}
<div class="content-container">
<h2>Leave a review</h2>
<form class="review-form" name="review" action="/review/" method="post">
@ -38,6 +39,7 @@
<div class="content-container tabs">
{% include 'snippets/tabs.html' with tabs=feed_tabs active_tab=active_tab path=path %}
</div>
{% endif %}
{% if not reviews %}
<div class="content-container">