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

H5P error message when accessing activity with role student as teacher

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • 4.1.4, 4.2.2
    • H5P
    • MOODLE_401_STABLE, MOODLE_402_STABLE

    Description

      What happens: The error message "This file can't be displayed because it has been uploaded by a user without the required capability to deploy H5P content." is shown when you add a H5P activity and access it with role "student", without accessing it as teacher first.

      This only occurs when switching the role to "student" as e.g. teacher. When you log in as student the H5P activity is displayed correctly without error message.

      What is expected: The H5P activity should be shown without accessing it as teacher first. Teachers test with the role "student" a lot and because of the error message, they believe that the H5P activity is not working.

      Reproduction steps (tested on https://school.moodledemo.net/ and our local instance):

      1. As a teacher (editing teacher)  - here is is important not to be admin so to see the error.
      2. Add a new H5P activity
      3. Give the activity any name and select a H5P package file (tested with Interactive video, memory game and dialog cards).
      4. Save the H5P activity with "Save and return to course"
      5. Switch role to "student"
      6. Access the H5P activity and you get the error message "This file can't be displayed because it has been uploaded by a user without the required capability to deploy H5P content." If neither the H5P activity or the error message is being displayed, go back to the course and access it again.
      7. Go back to the course
      8. Return to normal role
      9. Access the H5P activity
      10. Go back to the course
      11. Switch role to "student"
      12. Access the H5P activity. No error message is being displayed and the H5P activity also works correctly.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            lukaslang Lukas Lang-Kiss
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Clockify

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.