Skip to content

Commit

Permalink
Corrige le nom d'une fonction
Browse files Browse the repository at this point in the history
  • Loading branch information
philippemilink committed Sep 28, 2024
1 parent cf57a75 commit 7996685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zds/member/views/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def get_context_data(self, **kwargs):
context["alerts"] = profile.alerts_on_this_profile.all().order_by("-pubdate")
context["has_unsolved_alerts"] = profile.alerts_on_this_profile.filter(solved=False).exists()
has_ban_provider_perm = self.request.user.has_perm("user.change_bannedemailprovider")
new_provider = NewEmailProvider.objects.where(user=usr).first()
new_provider = NewEmailProvider.objects.filter(user=usr).first()
context["can_ban_provider"] = has_ban_provider_perm and new_provider is not None
context["provider"] = new_provider
context["summaries"] = self.get_summaries(profile, hide_forum_activity)
Expand Down

0 comments on commit 7996685

Please sign in to comment.