Fixes CNVS-33763
Test Plan:
* Prerequisite: Kaltura/Notorious plugin enabled for generating
file previews
* Create a course with "Institution" visibility.
* Upload a media file to the course.
* Create a content page and link the media file using the sidebar.
* Log in or masquerade as a non-enrolled user.
* Access the page and see that the file link appears along
with its preview.
Change-Id: If5590abaded4d74a1f5d737fe84de42bb60c6ffe
Reviewed-on: https://gerrit.instructure.com/97790
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Heath Hales <hhales@instructure.com>
Product-Review: Dan Minkevitch <dan@instructure.com>
fixes CNVS-31408
test plan:
- go to /files
- upload a file
- note its id
- add a calendar event to your user calendar
- put /users/<user_id>/files/<attachment_id> somewhere in the
description, where <user_id> is your own non-global user id
and <attachment_id> is the id of the file you uploaded
- save the event
- go to your calendar
- ensure the event renders
- ensure you don't get a "oops the last request didn't work out"
thing showing up
Change-Id: I9b296c657c7e5bbfb2bace35e5d6cc7b7e036a2c
Reviewed-on: https://gerrit.instructure.com/89110
Reviewed-by: Joel Hough <joel@instructure.com>
Tested-by: Jenkins
QA-Review: Deepeeca Soundarrajan <dsoundarrajan@instructure.com>
Product-Review: Alex Boyd <aboyd@instructure.com>
fixes CNVS-24940
- Abstracts api_user_content html rewriter file handler
- Adds public_user_content helper, similar to api_user_content &
user_content.
test plan:
- Create or have a course that is whose syllabus is publicly available.
- Add a syllabus description that contains media; an inline image, audio
recording & video; links to some files.
- Observe that as a student logged in with access to the course, the
inline media is all visible, and that the linked media is
downloadable.
- Observe that as a user not logged in, without accces to th course,
the inline media is all visible, and that the linked media is
downloadable.
- Have a course with content that includes descriptions or text fields
that are edited via tiny mce / RCS.
- Make sure that some content includes inline media and linked files.
- Access this content via the API.
- Observe that media urls and links to media that are returned via the
API work outside the context of canvas-lms.
Change-Id: Id6ec39a92dcab29d6cc8c20d2e6db2aa5e8293d1
Reviewed-on: https://gerrit.instructure.com/83498
Reviewed-by: Rob Orton <rob@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
QA-Review: Benjamin Christian Nelson <bcnelson@instructure.com>
Tested-by: Jenkins
Product-Review: John Corrigan <jcorrigan@instructure.com>