fix(base): dont show user warning bar for non-authenticated user

!42
This commit is contained in:
2024-07-18 01:48:57 +09:30
parent 8457f15eca
commit 5c74360842

View File

@ -109,8 +109,10 @@ section h2 span svg {
{% endblock content_header_icon %}
{% endif %}
</h2>
{% if not user_default_organization %}
<div class="warning-bar">You do not have a <b>default organization</b> set, go to <a href="{% url '_settings_user' pk=user_settings %}">user settings</a> to set one</div>
{% if user.is_authenticated %}
{% if not user_default_organization %}
<div class="warning-bar">You do not have a <b>default organization</b> set, go to <a href="{% url '_settings_user' pk=user_settings %}">user settings</a> to set one</div>
{% endif %}
{% endif %}
{% block article %}
<article id="content-body">