From e169b639a73d01ed3c2cda93163b3b8940e64938 Mon Sep 17 00:00:00 2001 From: Frode Petterson <frode.andre.petterson@gmail.com> Date: Wed, 21 Sep 2016 10:09:56 +0200 Subject: [PATCH] Exports uses course context for now h5p/h5p-moodle-plugin#112 --- lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib.php b/lib.php index 19c8a36..caf5b29 100644 --- a/lib.php +++ b/lib.php @@ -275,7 +275,7 @@ function hvp_pluginfile($course, $cm, $context, $filearea, $args, $forcedownload break; case 'exports': - if ($context->contextlevel != CONTEXT_MODULE) { + if ($context->contextlevel != CONTEXT_COURSE) { return false; // Invalid context. } -- GitLab