MDL-84478 tool_brickfield: verify sesskey prior to course analysis.

This commit is contained in:
Paul Holden 2025-02-09 23:56:44 +00:00 committed by Jun Pataleta
parent 0e6246db29
commit 10e93d074b
No known key found for this signature in database
GPG Key ID: F83510526D99E2C7

View File

@ -87,6 +87,7 @@ $action = optional_param('action', '', PARAM_ALPHA);
// Handle any single operation actions.
if ($action == 'requestanalysis') {
if ($courseid != 0) {
require_sesskey();
scheduler::request_course_analysis($courseid);
if ($courseid == SITEID) {
redirect(accessibility::get_plugin_url());