This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse
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
..
adapters DEV: Import set, setProperties, helper, and string functions (#8297) 2019-11-05 12:43:49 -06:00
components FEATURE: Filter reviewables by date range (#8354) 2019-11-15 15:29:59 -03:00
controllers FEATURE: Filter reviewables by date range (#8354) 2019-11-15 15:29:59 -03:00
helpers DEV: Remove Discourse.Site in favor of import (#8344) 2019-11-13 12:13:47 -05:00
initializers DEV: Run prettier 2019-11-12 11:49:31 +01:00
lib FEATURE: Add support for secure media (#7888) 2019-11-18 11:25:42 +10:00
mixins REFACTOR: Move upload utilities to their own file 2019-11-14 12:51:08 -05:00
models Fix Prettier using correct version (1.19.1) 2019-11-15 10:34:26 -05:00
pre-initializers WIP - set Discourse.currentUser 2019-11-13 15:34:30 -05:00
raw-views DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
routes FEATURE: Filter reviewables by date range (#8354) 2019-11-15 15:29:59 -03:00
services DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
templates FEATURE: Filter reviewables by date range (#8354) 2019-11-15 15:29:59 -03:00
widgets Fix Prettier again 2019-11-15 10:52:06 -05:00
mapping-router.js.es6 DEV: Remove Discourse.Site in favor of import (#8344) 2019-11-13 12:13:47 -05:00