From b1af4d4a6478a8fdf347075739a093e705625ade 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 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 -- 2.39.5