Skip to content
Snippets Groups Projects
Commit e169b639 authored by Frode Petterson's avatar Frode Petterson
Browse files

Exports uses course context for now

h5p/h5p-moodle-plugin#112
parent aec115e8
No related branches found
No related tags found
No related merge requests found
...@@ -275,7 +275,7 @@ function hvp_pluginfile($course, $cm, $context, $filearea, $args, $forcedownload ...@@ -275,7 +275,7 @@ function hvp_pluginfile($course, $cm, $context, $filearea, $args, $forcedownload
break; break;
case 'exports': case 'exports':
if ($context->contextlevel != CONTEXT_MODULE) { if ($context->contextlevel != CONTEXT_COURSE) {
return false; // Invalid context. return false; // Invalid context.
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment