MDL-81890 tool_moodlenet: Fix sesskey checks

This commit is contained in:
meirzamoodle 2024-06-03 16:50:03 +07:00 committed by Jun Pataleta
parent 2630591338
commit 756090ed79
No known key found for this signature in database
GPG Key ID: F83510526D99E2C7
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ if ($cancel) {
}
redirect($url);
} else if ($continue) {
confirm_sesskey();
require_sesskey();
// Handle backups.
if (strtolower($importinfo->get_resource()->get_extension()) == 'mbz') {

View File

@ -81,7 +81,7 @@ switch ($config->type) {
}
if ($import && $module) {
confirm_sesskey();
require_sesskey();
$handlerinfo = $handlerregistry->get_resource_handler_for_mod_and_strategy($importinfo->get_resource(), $module, $strategy);
if (is_null($handlerinfo)) {