From: Guillaume Pellerin Date: Tue, 31 Jan 2023 08:18:38 +0000 (+0100) Subject: prof view drafts X-Git-Tag: 2.9.0~81 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=15953bf748850dda205bd54e7cfb65d3b9c82fff;p=teleforma.git prof view drafts --- diff --git a/teleforma/templatetags/teleforma_tags.py b/teleforma/templatetags/teleforma_tags.py index 1afbca86..4fccb827 100644 --- a/teleforma/templatetags/teleforma_tags.py +++ b/teleforma/templatetags/teleforma_tags.py @@ -475,7 +475,7 @@ def course_ingoing_conferences(context): @register.simple_tag(takes_context=True) def course_past_conferences(context): user = context['user'] - if user.is_staff: + if user.is_staff or user.professor.count(): status_min = 2 else: status_min = 3