MDL-65356 mod_data: update entry editing/deletion to not leak sesskey.

This commit is contained in:
Paul Holden
2025-04-10 10:07:11 +07:00
committed by Huong Nguyen
parent 64a4311266
commit 052007b732
4 changed files with 12 additions and 14 deletions
-5
View File
@@ -80,11 +80,6 @@ if ($manager->can_manage_templates()) {
}
}
if ($rid) {
// When editing an existing record, we require the session key.
require_sesskey();
}
// Get Group information for permission testing and record creation.
$currentgroup = groups_get_activity_group($cm);
$groupmode = groups_get_activity_groupmode($cm);