discourse/lib/site_settings
Penar Musaraj 102909edb3 FEATURE: Add support for secure media (#7888)
This PR introduces a new secure media setting. When enabled, it prevent unathorized access to media uploads (files of type image, video and audio). When the `login_required` setting is enabled, then all media uploads will be protected from unauthorized (anonymous) access. When `login_required`is disabled, only media in private messages will be protected from unauthorized access. 

A few notes: 

- the `prevent_anons_from_downloading_files` setting no longer applies to audio and video uploads
- the `secure_media` setting can only be enabled if S3 uploads are already enabled and configured
- upload records have a new column, `secure`, which is a boolean `true/false` of the upload's secure status
- when creating a public post with an upload that has already been uploaded and is marked as secure, the post creator will raise an error
- when enabling or disabling the setting on a site with existing uploads, the rake task `uploads:ensure_correct_acl` should be used to update all uploads' secure status and their ACL on S3
2019-11-18 11:25:42 +10:00
..
db_provider.rb FIX: site settings loading default values when no db 2019-06-14 14:21:07 +10:00
defaults_provider.rb FEATURE: English locale with international date formats 2019-05-20 13:47:20 +02:00
deprecated_settings.rb REFACTOR: Rename SiteSetting.disable_edit_notifications to disable_system_edit_notifications (#7958) 2019-07-31 20:20:41 +05:30
local_process_provider.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
type_supervisor.rb FEATURE: New site settings for default tags in user preferences. (#8283) 2019-11-01 12:40:13 +05:30
validations.rb FEATURE: Add support for secure media (#7888) 2019-11-18 11:25:42 +10:00
yaml_loader.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00