mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 04:22:07 +02:00
MDL-58080 mod_scorm: add immutable header for scorm content files.
This commit is contained in:
parent
1287039e62
commit
37ddc231f8
@ -972,7 +972,7 @@ function scorm_pluginfile($course, $cm, $context, $filearea, $args, $forcedownlo
|
||||
$revision = (int)array_shift($args); // Prevents caching problems - ignored here.
|
||||
$relativepath = implode('/', $args);
|
||||
$fullpath = "/$context->id/mod_scorm/content/0/$relativepath";
|
||||
// TODO: add any other access restrictions here if needed!
|
||||
$options['immutable'] = true; // Add immutable option, $relativepath changes on file update.
|
||||
|
||||
} else if ($filearea === 'package') {
|
||||
// Check if the global setting for disabling package downloads is enabled.
|
||||
|
Loading…
x
Reference in New Issue
Block a user