discourse/lib/site_settings
Martin Brennan 02cb01406e
FIX: Allow secure uploads if global s3 setting active and enable_s3_uploads validations (#8373)
The secure media functionality relied on `SiteSetting.enable_s3_uploads?` which, as we found in dev, did not take into account global S3 settings via `GlobalSetting.use_s3?`. We now use `SiteSetting.Upload.enable_s3_uploads` instead to be more consistent.

Also, we now validate `enable_s3_uploads` changes, because if `GlobalSetting.use_s3?` is true users should NOT be enabling S3 uploads manually.
2019-11-20 07:46:44 +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 FIX: Allow secure uploads if global s3 setting active and enable_s3_uploads validations (#8373) 2019-11-20 07:46:44 +10:00
yaml_loader.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00