mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-25 05:42:23 +00:00
Display at least our notes in the notes table
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
parent
c4ec6a6f29
commit
1cbf95e6e1
@ -1892,9 +1892,9 @@ class PassageDetailView(LoginRequiredMixin, DetailView):
|
|||||||
if reg.is_volunteer:
|
if reg.is_volunteer:
|
||||||
notes = self.object.notes.all()
|
notes = self.object.notes.all()
|
||||||
if not reg.is_admin \
|
if not reg.is_admin \
|
||||||
or (reg != self.object.pool.jury_president
|
and (reg != self.object.pool.jury_president
|
||||||
and reg not in self.object.pool.tournament.organizers.all()):
|
or reg not in self.object.pool.tournament.organizers.all()):
|
||||||
notes = [note for note in notes if note.has_any_note()]
|
notes = [note for note in notes if note.has_any_note() or note.jury == reg]
|
||||||
context["notes"] = NoteTable(notes)
|
context["notes"] = NoteTable(notes)
|
||||||
|
|
||||||
# Only display the observer column for 4-teams pools
|
# Only display the observer column for 4-teams pools
|
||||||
|
Loading…
Reference in New Issue
Block a user