Skip to content

Commit

Permalink
MDL-81890 tool_moodlenet: Fix sesskey checks
Browse files Browse the repository at this point in the history
  • Loading branch information
meirzamoodle authored and junpataleta committed Jun 6, 2024
1 parent 671218e commit db2f97a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion admin/tool/moodlenet/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
}
redirect($url);
} else if ($continue) {
confirm_sesskey();
require_sesskey();

// Handle backups.
if (strtolower($importinfo->get_resource()->get_extension()) == 'mbz') {
Expand Down
2 changes: 1 addition & 1 deletion admin/tool/moodlenet/options.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
}

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)) {
Expand Down

0 comments on commit db2f97a

Please sign in to comment.