]> git.parisson.com Git - teleforma.git/commitdiff
syntax
authorGuillaume Pellerin <guillaume.pellerin@free.fr>
Mon, 15 Apr 2024 01:59:38 +0000 (03:59 +0200)
committerGuillaume Pellerin <guillaume.pellerin@free.fr>
Mon, 15 Apr 2024 01:59:38 +0000 (03:59 +0200)
teleforma/views/core.py

index 43daa83819b63284002ce5f3c22d704d2652e47b..1c75422404da36497b13e9f744c4dd0669c97c45 100644 (file)
@@ -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