Skip to content

Commit

Permalink
🔥 Removes ability to see your own Application
Browse files Browse the repository at this point in the history
  • Loading branch information
jefftriplett committed May 27, 2024
1 parent 50e71f0 commit 2f06b19
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion grants/views/program.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,10 @@ def get_queryset(self):
# Fetch applicants
# but don't let a user see their own request
applicants = list(
self.program.applicants.exclude(email=self.request.user.email)
self.program.applicants.exclude(
Q(email=self.request.user.email) |
Q(name=self.request.user.get_full_name())
)
.prefetch_related("scores")
.order_by("-applied")
)
Expand Down

0 comments on commit 2f06b19

Please sign in to comment.