There is no easy way to set permission to directories in collecting static files
|Reported by:||vajrasky||Owned by:||vajrasky|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
This is the continuation of ticket #21219. Right now, the files will get permissions from FILE_UPLOAD_PERMISSIONS (unless you subclass the static files storage class and set file_permissions) in collecting static files, but not directories. Directories will not get permission from FILE_UPLOAD_DIRECTORY_PERMISSIONS (or FILE_UPLOAD_FILE_PERMISSIONS).
I suggest that we add feature where the directories in collecting static files will get permission be default from FILE_UPLOAD_DIRECTORY_PERMISSIONS (unless we subclass the static file storage class and set directory_permissions attributes).
Change History (3)
comment:1 Changed 2 years ago by timo
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted
comment:2 Changed 2 years ago by vajrasky
- Has patch set
- Owner changed from nobody to vajrasky
- Status changed from new to assigned