MDL-81611 assign: Close session early in gradingpanel fragment

This commit is contained in:
Mark Johnson 2024-04-24 10:33:57 +01:00
parent 792698af00
commit 7cc089a457
No known key found for this signature in database
GPG Key ID: EB30E1468CFAE242

View File

@ -1400,6 +1400,8 @@ function assign_pluginfile($course,
function mod_assign_output_fragment_gradingpanel($args) {
global $CFG;
\core\session\manager::write_close(); // No changes to session in this function.
$context = $args['context'];
if ($context->contextlevel != CONTEXT_MODULE) {