request.user vs user in templates
diff --git a/circle/dashboard/templates/dashboard/base.html b/circle/dashboard/templates/dashboard/base.html
index 41c88ed..3762cbd 100644
--- a/circle/dashboard/templates/dashboard/base.html
+++ b/circle/dashboard/templates/dashboard/base.html
@@ -11,9 +11,9 @@
{% block navbar %}
-{% if user.is_authenticated and user.pk and not request.token_user %}
+{% if request.user.is_authenticated and request.user.pk and not request.token_user %}
<ul class="nav navbar-nav navbar-right" id="dashboard-menu">
- {% if user.is_superuser %}
+ {% if request.user.is_superuser %}
{% if ADMIN_ENABLED %}
<li>
<a href="/admin/">
@@ -56,7 +56,7 @@
<li>
<a href="{% url "dashboard.views.profile-preferences" %}">
<i class="fa fa-user"></i>
- {% include "dashboard/_display-name.html" with user=user show_org=True %}
+ {% include "dashboard/_display-name.html" with user=request.user show_org=True %}
</a>
</li>
<li>
@@ -89,7 +89,7 @@
</li>
<li class="hidden-xs">
<a href="{% url "dashboard.views.profile-preferences" %}">
- <img class="profile-avatar" src="{{ user.profile.get_avatar_url }}" />
+ <img class="profile-avatar" src="{{ request.user.profile.get_avatar_url }}" />
</a>
</li>
</ul>
-
-
-
Status changed to closed
Toggle commit list
Please
register
or
sign in
to comment