canvas-lms/app/jsx/files
Augusto Callejas 59a5fb70e3 Enable usage rights on discussion topic files
closes OUT-3933

flag=usage_rights_discussion_topics

If a course has usage rights enabled, then discussion topics
and announcements will require usage rights set when a file
is attached. If a user does not have manage_files permission,
then the usage rights indicator won't appear, but a default
set of usage rights will be applied.

prerequisites:
  - in a course, enable copyright and license information
    on files under course settings
  - create teacher and student accounts
  - create a group in the course, and add the student

test plan (before enabling feature flag):
  - confirm that when creating course discussions
    with file attachments as a teacher and student,
    copyright information is not set in the Files
    section
  - confirm the same with group discussions

test plan:
  - enable the feature flag
  - for course discussions:
    - as a teacher, confirm that when creating
      a discussion, usage rights are required
      when attaching a file. confirm the usage
      rights settings are set by re-editing
      the discussion and viewing the file in
      the Files section
    - as a student, confirm that when creating
      a discussion, usage rights are not required
      when attaching a file, but when the topic
      is created, the file appears with a copyright
      setting in the Files section
  - for group discussions:
    - as a teacher and student, confirm that when
      creating a discussion, usage rights are
      required when attaching a file. confirm the usage
      rights settings are set by re-editing
      the discussion and viewing the file in
      the Files section

Change-Id: I0dc6532f7d8188cf4f623275fcf8562f19585f1f
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/248211
Reviewed-by: Pat Renner <prenner@instructure.com>
QA-Review: Pat Renner <prenner@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Product-Review: Jody Sailor
2020-10-07 22:40:04 +00:00
..
__tests__ Show file rename dialogs after clicking Add Item 2020-05-01 21:10:44 +00:00
utils Run prettier on app/jsx/ from files to login 2019-10-08 16:42:44 +00:00
BBTreeBrowser.js react 16: Convert some React.createClass to es6 2018-09-12 15:27:31 +00:00
BreadcrumbCollapsedContainer.js react 16: Convert some React.createClass to es6 2018-09-12 15:27:31 +00:00
Breadcrumbs.js Run prettier on app/jsx/ from files to login 2019-10-08 16:42:44 +00:00
ColumnHeaders.js Run prettier on app/jsx/ from files to login 2019-10-08 16:42:44 +00:00
CurrentUploads.js Disable upload while uploads are in progress 2020-04-24 17:13:38 +00:00
DialogPreview.js Run prettier on app/jsx/ from files to login 2019-10-08 16:42:44 +00:00
DragFeedback.js Run prettier on app/jsx/ from files to login 2019-10-08 16:42:44 +00:00
FilePreview.js Remove sandbox from File Preview iframe 2020-08-14 00:43:34 +00:00
FilePreviewInfoPanel.js react 16: Convert some React.createClass to es6 2018-09-12 15:27:31 +00:00
FileRenameForm.js Custom file rename messaging 2020-04-28 23:14:20 +00:00
FileUpload.js Disable upload while uploads are in progress 2020-04-24 17:13:38 +00:00
FilesApp.js Use only aria-label on Files hamburger menu 2020-07-02 17:58:38 +00:00
FilesUsage.js Run prettier on app/jsx/ from files to login 2019-10-08 16:42:44 +00:00
FilesystemObjectThumbnail.js Run prettier on app/jsx/ from files to login 2019-10-08 16:42:44 +00:00
FolderChild.js Run prettier on app/jsx/ from files to login 2019-10-08 16:42:44 +00:00
FolderTree.js Run prettier on app/jsx/ from files to login 2019-10-08 16:42:44 +00:00
ItemCog.js Run prettier on app/jsx/ from files to login 2019-10-08 16:42:44 +00:00
LoadingIndicator.js Get LoadingIndicator to work w/ react 16 2018-09-12 04:11:35 +00:00
MoveDialog.js Run prettier on app/jsx/ from files to login 2019-10-08 16:42:44 +00:00
NoResults.js Replace React Modals with InstUI 2018-10-16 20:07:23 +00:00
RestrictedDialogForm.js Run prettier on app/jsx/ from files to login 2019-10-08 16:42:44 +00:00
RestrictedRadioButtons.js Add tooltip to RestrictedRadioButtons on file permission editor 2020-06-08 21:45:07 +00:00
SearchResults.js Run prettier on app/jsx/ from files to login 2019-10-08 16:42:44 +00:00
ShowFolder.js Improve files page drag and drop 2020-04-11 02:55:30 +00:00
Toolbar.js Fix file upload bugs 2020-04-23 03:00:09 +00:00
UploadButton.js Custom file rename messaging 2020-04-28 23:14:20 +00:00
UploadDropZone.js Remove some unused imports 2019-06-03 17:13:45 +00:00
UploadForm.js Show file rename dialogs after clicking Add Item 2020-05-01 21:10:44 +00:00
UploadProgress.js Fix file upload bugs 2020-04-23 03:00:09 +00:00
UsageRightsDialog.js Enable usage rights on discussion topic files 2020-10-07 22:40:04 +00:00
UsageRightsIndicator.js Enable usage rights on discussion topic files 2020-10-07 22:40:04 +00:00
UsageRightsSelectBox.js update fair use text in usage rights form 2019-10-21 15:02:48 +00:00
ZipFileOptionsForm.js react 16: Convert some React.createClass to es6 2018-09-12 15:27:31 +00:00
codeToRemoveLater.js Run prettier on app/jsx/ from files to login 2019-10-08 16:42:44 +00:00
router.js files: turn off page.js click handler 2019-10-17 20:47:47 +00:00