Skip to content
Snippets Groups Projects
Unverified Commit 61ce0ab5 authored by Thomas's avatar Thomas Committed by GitHub
Browse files

Merge pull request #345 from Peterburnett/embed-session-lock

Issue #344: Release session lock before embed
parents cd3e84e4 c7796896
No related branches found
No related tags found
No related merge requests found
......@@ -71,6 +71,9 @@ try {
$context = context_module::instance($cm->id);
require_capability('mod/hvp:view', $context);
// Unlock session during embed.
core\session\manager::write_close();
// Set up view assets.
$view = new \mod_hvp\view_assets($cm, $course, ['disabledownload' => $disabledownload, 'disablefullscreen' => $disablefullscreen]);
$content = $view->getcontent();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment