Display at least our notes in the notes table

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello 2024-03-31 20:56:49 +02:00
parent c4ec6a6f29
commit 1cbf95e6e1
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
1 changed files with 3 additions and 3 deletions

View File

@ -1892,9 +1892,9 @@ class PassageDetailView(LoginRequiredMixin, DetailView):
if reg.is_volunteer:
notes = self.object.notes.all()
if not reg.is_admin \
or (reg != self.object.pool.jury_president
and reg not in self.object.pool.tournament.organizers.all()):
notes = [note for note in notes if note.has_any_note()]
and (reg != self.object.pool.jury_president
or reg not in self.object.pool.tournament.organizers.all()):
notes = [note for note in notes if note.has_any_note() or note.jury == reg]
context["notes"] = NoteTable(notes)
# Only display the observer column for 4-teams pools