Interactive video and Moodle 3.5.2+

Student - Mod_hvp/cachedassets set to "1" however, not allowing Student role (Archtype: Student) to view H5P interactive content.  3.5 worked fine.

I know, H5P isn't listing 3.5.2 (only 3.5 lower) but, we updated to 3.5.2+ and discovered this bug.

Anyway, looking for a fix. 

Works for all roles above Student

"Hack" is to assign Student to System level asset and then list individuals as system level student (assign system role).  This allows role=student to view the H5P content (interactive video).

The errors are visible (upon inspection/console) within browswer which leads to root cause.

So, is there a permanent fix available coming in next release (when?) and/or can you offer me advice/direction on how to resolve now?

Thank you,

Mark

 

Summary: 
H5P interactive video and moodle 3.5.2+
thomasmars's picture

Hi Mark,
Since you did not specify the H5P plugin version I assume it is the latest, version 1.10.
I tried to reproduce this with Moodle 3.5.2, but it is working fine for me, a student that is enrolled within the course has no problem seeing the H5P.

My 'Student' role has the following capabilities (which are the default ones):

  •  mod/hvp:getcachedassets (required)
  • mod/hvp:view (required)
  • mod/hvp:viewresults (optional)
  • mod/hvp:savecontentuserdata (optional)
  • mod/hvp:saveresults (optional)

Make sure that your student has these capabilities. The content types where the role may be assigned should be "Course" and "Activity module".

If you're still not able to view the content after following these instructions, make sure to check your browser's console for any errors, as well as the PHP error log.

Best regards, Thomas

Sorry for the late reply but it was helpful to get your feedback when you replied.  Greatly appreciated