Commit Graph

4 Commits

Author SHA1 Message Date
Landon Wilkins 45b8efda41 da licença part 36
add consistent license headers to all source files

Change-Id: I15e544768e7361fc050089a5ed4699f7ee96bb2c
Reviewed-on: https://gerrit.instructure.com/110064
Tested-by: Jenkins
Reviewed-by: Jon Jensen <jon@instructure.com>
Product-Review: Jon Jensen <jon@instructure.com>
QA-Review: Jon Jensen <jon@instructure.com>
2017-04-28 17:31:17 +00:00
Dan Minkevitch 43429e68f3 Fix issue with file previews hidden with "Institution" visibility
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>
2017-01-07 00:52:54 +00:00
Alex Boyd 80b7766db6 fix user content translation of user attachment links
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>
2016-09-02 00:22:50 +00:00
John Corrigan 215c6fb650 add public_user_content helper
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>
2016-07-27 15:08:42 +00:00