From 7836c30b3e92f8e9b54c6ac10a20262c5589c160 Mon Sep 17 00:00:00 2001 From: Erich Hasl Date: Sun, 30 Jun 2019 21:17:34 +0200 Subject: [PATCH] allow read for others on uploaded images --- jdav_web/jdav_web/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jdav_web/jdav_web/settings.py b/jdav_web/jdav_web/settings.py index b10b73b..0b4f6e8 100644 --- a/jdav_web/jdav_web/settings.py +++ b/jdav_web/jdav_web/settings.py @@ -39,7 +39,7 @@ MEDIA_MEMBERLISTS = os.path.join((os.path.join(BASE_DIR, os.pardir)), "media") # prevent large files from being unreadable by the server # see # https://stackoverflow.com/questions/51439689/django-nginx-error-403-forbidden-when-serving-media-files-over-some-size -FILE_UPLOAD_PERMISSIONS = 0o640 +FILE_UPLOAD_PERMISSIONS = 0o644 # x forward