Embed H5P not showing when using "log in as user" capability

Hi,

I have created a H5P course presentation and chose the option "Available but not shown on course page". Then I embed the H5P to the course page so stundents can see it. The problem I am having is that when I go to check course participants and choose an user that has student role and use capability to "log in as user". After that when I go to course page the embed H5P is not displayed. This happens only if I use the "log in as user" capability.