]> 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>
Wed, 17 Apr 2024 08:25:55 +0000 (10:25 +0200)
teleforma/views/core.py

index e418a4d75fe09b3117178dc4a625600f231fb9ee..4630377cdae5bf17661e4a672f47f38448e75098 100644 (file)
@@ -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