Check the sesskey on the editor page

This commit is contained in:
Valentin Popov 2018-01-04 15:35:27 +04:00
parent 283c64f62e
commit 9b7426fb20

View File

@ -56,7 +56,7 @@ if ($editing = boolval($serviceid)) {
}
/* Processing of received data */
if ($data = $mform->get_data()) {
if (($data = $mform->get_data()) && confirm_sesskey()) {
if ($editing) {
$data->id = $serviceid;
local_webhooks_update_record($data);