-
Bug
-
Resolution: Fixed
-
Minor
-
3.8
-
MOODLE_38_STABLE
-
MOODLE_38_STABLE
-
-
H5P Sprint Relase 3.8
Right now the player only checks if the user is authenticated when the contextlevel is "module". There are other cases when it should be checked, e.g. if an h5p is in a section description, and probably with blocks inside a course, etc.
How to reproduce:
- Create a course.
- Edit one of the sections.
- In that section, upload an H5P file using the "Manage files" button in the Atto editor.
- Now click the "Link" button, click "Browse repositories", select "Embedded files" and select the h5p file you just uploaded.
- Save the changes.
- Copy the URL of the h5p file.
- In a new browser where you aren't authenticated or in incognito mode, open the embed.php script and pass the URL of the package. Check that you're able to view the package without being authenticated.
Please notice that, when fixing this, you need to take into account the preventredirect param added in MDL-67076.
- Discovered while testing
-
MDL-67076 Let the embed.php redirect to login (requirement for the app)
-
- Closed
-