MDL-81890 course: Fix sesskey checks

This commit is contained in:
meirzamoodle 2024-06-03 16:50:30 +07:00 committed by Jun Pataleta
parent db2f97a6f4
commit 40b2fb9a31
No known key found for this signature in database
GPG Key ID: F83510526D99E2C7

View File

@ -46,7 +46,7 @@ $filename = str_replace('/', '', str_replace(' ', '_', $courseinfo->shortname))
// If download confirmed, prepare and start the zipstream of the course download content.
if ($isdownload) {
confirm_sesskey();
require_sesskey();
$exportoptions = null;