From f08bf5cd523d12cd62eed2b33ae6e9bef8d8c0e9 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 15 Apr 2024 03:59:38 +0200 Subject: [PATCH] syntax --- teleforma/views/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teleforma/views/core.py b/teleforma/views/core.py index e418a4d7..4630377c 100644 --- a/teleforma/views/core.py +++ b/teleforma/views/core.py @@ -819,7 +819,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 -- 2.39.5