Skip to content

Commit

Permalink
only logged in user able to see polls option in navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
Lord-shiv committed Jun 6, 2021
1 parent 292e577 commit 115b7dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/includes/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
<li class="nav-item active">
<a class="nav-link" href="{% url 'home' %}">Home <span class="sr-only">(current)</span></a>
</li>
{% if request.user.is_authenticated %}
<li class="nav-item">
<a class="nav-link" href="{% url 'polls:list' %}">Polls</a>
</li>
{% endif %}
</ul>
<div class="navbar-nav ml-auto">
{% if request.user.is_authenticated %}
Expand Down

0 comments on commit 115b7dd

Please sign in to comment.