Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-5518

Image for published question not visible in alternate course

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6, 1.6.1, 1.6.2, 1.6.3, 1.6.4, 1.6.5, 1.7, 1.7.1, 1.7.2, 1.8
    • Fix Version/s: 1.9
    • Component/s: Questions
    • Labels:
      None
    • Environment:
      All
    • Affected Branches:
      MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      Similar to MDL-472 where images were not appearing for questions in a published question category there is an access issue. I use a course for teachers to share resources and to build up a common question bank. They can then publish these questions and use them in the different courses they teach. All has worked fine until we try to use images. The images are stored in the teacher repository course which is a hidden course that students cannot see. When published, the questions are fine; however, the image is not viewable because the student does not have the proper rights to view the image in the teacher repository course. Ideally, I would like for the file.php code to recognize that it is a published question and grant access to the image. I'm not sure how this might be accomplished securely. As it currently works it is somewhere between a feature request and a bug report as published questions with images are not fully published.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              timhunt Tim Hunt
              Reporter:
              aborrow Anthony Borrow
              Tester:
              Nobody
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Mar/08