Skip to content

Commit

Permalink
Show the candidates to anonymous users
Browse files Browse the repository at this point in the history
  • Loading branch information
tudoramariei committed Oct 29, 2024
1 parent 496c776 commit 60f9c29
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
6 changes: 0 additions & 6 deletions backend/hub/templates/hub/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,6 @@
{% trans "Organizations" %}
</a>

{% if user.is_authenticated and ELECTION_IN_PROGRESS %}
<a href="{% url 'candidates' %}" class="navbar-item">
{% trans "Candidates" %}
</a>
{% endif %}

<a href="{% url 'candidates' %}" class="navbar-item">

{% if CURRENT_EDITION_TYPE == "ces" %}
Expand Down
3 changes: 0 additions & 3 deletions backend/hub/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,9 +443,6 @@ def get_candidates_to_support(cls):
)

def get_qs(self):
if self.request.user.is_anonymous:
return Candidate.objects_with_org.none()

if FeatureFlag.flag_enabled(FLAG_CHOICES.enable_candidate_voting):
return self.get_candidates_to_vote()
elif FeatureFlag.flag_enabled(FLAG_CHOICES.enable_candidate_supporting):
Expand Down

0 comments on commit 60f9c29

Please sign in to comment.