guided tour only for request.user

This commit is contained in:
Hugh Rundle 2022-07-09 10:23:09 +10:00
parent 3365bb6d35
commit 53a89f69e7
8 changed files with 8 additions and 8 deletions

View file

@ -405,7 +405,7 @@
{% block scripts %}
<script src="{% static "js/tabs.js" %}?v={{ js_cache }}"></script>
<script src="{% static "js/autocomplete.js" %}?v={{ js_cache }}"></script>
{% if user.show_guided_tour %}
{% if request.user.show_guided_tour %}
{% include 'guided_tour/book.html' %}
{% endif %}
{% endblock %}

View file

@ -33,7 +33,7 @@
{% block scripts %}
<script src="{% static "js/tabs.js" %}?v={{ js_cache }}"></script>
{% if user.show_guided_tour %}
{% if request.user.show_guided_tour %}
{% include 'guided_tour/home.html' %}
{% endif %}

View file

@ -82,7 +82,7 @@
{% endblock %}
{% block scripts %}
{% if user.show_guided_tour %}
{% if request.user.show_guided_tour %}
{% include 'guided_tour/group.html' %}
{% endif %}
{% endblock %}

View file

@ -56,7 +56,7 @@
{% endblock %}
{% block scripts %}
{% if user.show_guided_tour %}
{% if request.user.show_guided_tour %}
{% include 'guided_tour/lists.html' %}
{% endif %}
{% endblock %}

View file

@ -70,7 +70,7 @@
{% endblock %}
{% block scripts %}
{% if user.show_guided_tour %}
{% if request.user.show_guided_tour %}
{% include 'guided_tour/search.html' %}
{% endif %}
{% endblock %}

View file

@ -218,7 +218,7 @@
{% endblock %}
{% block scripts %}
{% if user.show_guided_tour %}
{% if request.user.show_guided_tour %}
{% include 'guided_tour/user_books.html' %}
{% endif %}
{% endblock %}

View file

@ -37,7 +37,7 @@
{% endblock %}
{% block scripts %}
{% if user.show_guided_tour %}
{% if request.user.show_guided_tour %}
{% include 'guided_tour/user_groups.html' %}
{% endif %}
{% endblock %}

View file

@ -88,7 +88,7 @@
{% endblock %}
{% block scripts %}
{% if user.show_guided_tour %}
{% if request.user.show_guided_tour %}
{% include 'guided_tour/user_profile.html' %}
{% endif %}
{% endblock %}