mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Use the request user, not the current user var
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id="navigation">
|
<div id="navigation">
|
||||||
<ul>
|
<ul>
|
||||||
{% if user.is_authenticated %}
|
{% if request.user.is_authenticated %}
|
||||||
<li><a href="{% url sso.views.profile %}">Profile</a></li>
|
<li><a href="{% url sso.views.profile %}">Profile</a></li>
|
||||||
{% if "groups"|installed %}
|
{% if "groups"|installed %}
|
||||||
<li><a href="{% url groups.views.group_list %}">Groups</a></li>
|
<li><a href="{% url groups.views.group_list %}">Groups</a></li>
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
{% if perms.sso.can_search_users %}
|
{% if perms.sso.can_search_users %}
|
||||||
<li><a href="{% url sso.views.user_lookup %}">Lookup User</a></li>
|
<li><a href="{% url sso.views.user_lookup %}">Lookup User</a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if user.is_staff %}
|
{% if request.user.is_staff %}
|
||||||
<li><a href="/nexus/">Admin</a></li>
|
<li><a href="/nexus/">Admin</a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<li><a href="{% url django.contrib.auth.views.logout %}">Logout</a></li>
|
<li><a href="{% url django.contrib.auth.views.logout %}">Logout</a></li>
|
||||||
|
|||||||
Reference in New Issue
Block a user