From 67144d30342ce5a325a4436667083b9baafe0914 Mon Sep 17 00:00:00 2001 From: "Pavel \"LEdoian\" Turinsky" Date: Fri, 27 Nov 2020 04:16:28 +0100 Subject: [PATCH] =?UTF-8?q?Oprava=20pr=C3=A1v=20upload=C5=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bez toho soubory dostávaly ACL masku '---', takže požadavky pak končily HTTP 403. (Cherry-pick z masteru) --- mamweb/settings_common.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mamweb/settings_common.py b/mamweb/settings_common.py index bec16f7f..7a2bf85b 100644 --- a/mamweb/settings_common.py +++ b/mamweb/settings_common.py @@ -295,6 +295,9 @@ LOGGING = { }, } +# Permissions for uploads +FILE_UPLOAD_PERMISSIONS = 0o0644 + # MaM specific SEMINAR_RESENI_DIR = os.path.join('reseni')