From: Guillaume Pellerin Date: Mon, 15 Apr 2024 01:59:38 +0000 (+0200) Subject: syntax X-Git-Tag: 2.9.0~22^2~4 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=b1af4d4a6478a8fdf347075739a093e705625ade;p=teleforma.git syntax --- diff --git a/teleforma/views/core.py b/teleforma/views/core.py index 43daa838..1c754224 100644 --- a/teleforma/views/core.py +++ b/teleforma/views/core.py @@ -797,7 +797,7 @@ class DocumentView(CourseAccessMixin, DetailView): courses = get_courses(request.user) document = Document.objects.get(pk=pk) if get_access(document, courses): - if settings.TELEFORMA_PRIVATE_DOCUMENTS_MODE: + if settings.TELEFORMA_PRIVATE_DOCUMENTS_MODE: path = document.private_file.path else: path = document.file.path