Students can't view embedded content

Re: Students can't view embedded content

by David Saylor -
Number of replies: 3
In case anyone is curious the code that is causing this is here:

lib/moodlelib.php line 2701
if (\core\session\manager::is_loggedinas()) {
// During a "logged in as" session we should force all content to be cleaned because the
// logged in user will be viewing potentially malicious user generated content.
// See MDL-63786 for more details.
$CFG->forceclean = true;
}

Average of ratings: Useful (1)
In reply to David Saylor

Re: Students can't view embedded content

by Bronwen Campbell -

I have just come across the same issue and the same result - if I use the administrator "login as", I can't see the video, whereas if I log in with the actual student credentials, I can see the video. 

I use "login as" all the time to test content, so this is a challenging issue. Has anyone else noticed any other issues with "login as"?

Is there anything we can do about the code to allow us to view embedded content, or is there any other fix for this? We are on version Moodle 3.7+ (Build: 20190628) .

Thanks!

In reply to Bronwen Campbell

Re: Students can't view embedded content

by Niall Sheehan -
It's a security feature. Best option is to use a test account that is just a student. I realize it's not ideal to test if a specific student has an issues, however it prevents certain exploits from being exploitable.
Average of ratings: Useful (1)