mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-44746 core_events: removed incorrect uses of snapshots
This commit is contained in:
parent
578645aadf
commit
601c998c64
4 changed files with 63 additions and 24 deletions
14
mnet/lib.php
14
mnet/lib.php
|
@ -447,7 +447,12 @@ function mnet_update_sso_access_control($username, $mnet_host_id, $accessctrl) {
|
|||
// Trigger access control updated event.
|
||||
$params = array(
|
||||
'objectid' => $aclrecord->id,
|
||||
'context' => context_system::instance()
|
||||
'context' => context_system::instance(),
|
||||
'other' => array(
|
||||
'username' => $username,
|
||||
'hostname' => $mnethost->name,
|
||||
'accessctrl' => $accessctrl
|
||||
)
|
||||
);
|
||||
$event = \core\event\mnet_access_control_updated::create($params);
|
||||
$event->add_record_snapshot('mnet_host', $mnethost);
|
||||
|
@ -463,7 +468,12 @@ function mnet_update_sso_access_control($username, $mnet_host_id, $accessctrl) {
|
|||
// Trigger access control created event.
|
||||
$params = array(
|
||||
'objectid' => $aclrecord->id,
|
||||
'context' => context_system::instance()
|
||||
'context' => context_system::instance(),
|
||||
'other' => array(
|
||||
'username' => $username,
|
||||
'hostname' => $mnethost->name,
|
||||
'accessctrl' => $accessctrl
|
||||
)
|
||||
);
|
||||
$event = \core\event\mnet_access_control_created::create($params);
|
||||
$event->add_record_snapshot('mnet_host', $mnethost);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue