MDL-74911 assignfeedback_editpdf: unlock session when polling conversion

Polling conversions will run the document conversion immediately if the
conversion has not already been completed.

Releasing the session lock while doing this ensures large conversions
do not unnecessarily hold the users session.
This commit is contained in:
Matthew Hilton
2022-10-24 12:54:53 +10:00
parent 046e48c49c
commit 617a32f3f0
+3
View File
@@ -52,6 +52,9 @@ if (!$assignment->can_view_submission($userid)) {
}
if ($action === 'pollconversions') {
// Poll conversions does not require session lock.
\core\session\manager::write_close();
$draft = true;
if (!has_capability('mod/assign:grade', $context)) {
// A student always sees the readonly version.