Loading htdocs/admin/site/options.php +3 −3 Original line number Diff line number Diff line Loading @@ -806,7 +806,7 @@ $siteoptionform = array( 'defaultvalue' => get_config('eventloglevel'), 'options' => array( 'none' => get_string('eventloglevelnone', 'admin'), 'masq' => get_string('eventloglevelmasq', 'admin'), 'masquerade' => get_string('eventloglevelmasq', 'admin'), 'all' => get_string('eventloglevelall', 'admin'), ), 'help' => true, Loading htdocs/lang/en.utf8/admin.php +1 −0 Original line number Diff line number Diff line Loading @@ -64,6 +64,7 @@ $string['cliinstallerdescription'] = 'Install Mahara and create required data di $string['cliinstallingmahara'] = 'Installing Mahara'; $string['versionnumber'] = 'Version: %s'; $string['plugintype'] = 'Plugin: %s'; $string['updateeventlogconfigoption'] = 'The value for $cfg->eventloglevel may need to be updated from "masq" to "masquerade" in your config.php file.'; // CLI upgrade script $string['cli_upgrade_description'] = 'Upgrade the Mahara database and data to the version of Mahara installed.'; Loading htdocs/lib/config-defaults.php +5 −5 Original line number Diff line number Diff line Loading @@ -1718,7 +1718,7 @@ $cfg->saml_log_attributes = false; * * Valid values: * - none : Nothing is logged in the database. * - masq : Only masquerading sessions are logged. This setting needs to be * - masquerade : Only masquerading sessions are logged. This setting needs to be * turned on if you wish to report on administrator masquerading of * account holders. * - all : All events that can be logged in the database are logged. Loading htdocs/lib/db/upgrade.php +7 −0 Original line number Diff line number Diff line Loading @@ -2459,5 +2459,12 @@ function xmldb_core_upgrade($oldversion=0) { } } if ($oldversion < 2021042727) { if (get_config('eventloglevel') === 'masq') { set_config('eventloglevel', 'masquerade'); log_warn(get_string('updateeventlogconfigoption', 'admin'), true, false); } } return $status; } htdocs/lib/mahara.php +1 −1 Original line number Diff line number Diff line Loading @@ -2086,7 +2086,7 @@ function handle_event($event, $data, $ignorefields = array()) { $parentuser = $USER->get('parentuser'); $eventloglevel = get_config('eventloglevel'); if ($eventloglevel === 'all' or ($parentuser and $eventloglevel === 'masq')) { or ($parentuser and $eventloglevel === 'masquerade')) { $logentry = (object) array( 'usr' => $USER->get('id'), 'realusr' => $parentuser ? $parentuser->id : $USER->get('id'), Loading Loading
htdocs/admin/site/options.php +3 −3 Original line number Diff line number Diff line Loading @@ -806,7 +806,7 @@ $siteoptionform = array( 'defaultvalue' => get_config('eventloglevel'), 'options' => array( 'none' => get_string('eventloglevelnone', 'admin'), 'masq' => get_string('eventloglevelmasq', 'admin'), 'masquerade' => get_string('eventloglevelmasq', 'admin'), 'all' => get_string('eventloglevelall', 'admin'), ), 'help' => true, Loading
htdocs/lang/en.utf8/admin.php +1 −0 Original line number Diff line number Diff line Loading @@ -64,6 +64,7 @@ $string['cliinstallerdescription'] = 'Install Mahara and create required data di $string['cliinstallingmahara'] = 'Installing Mahara'; $string['versionnumber'] = 'Version: %s'; $string['plugintype'] = 'Plugin: %s'; $string['updateeventlogconfigoption'] = 'The value for $cfg->eventloglevel may need to be updated from "masq" to "masquerade" in your config.php file.'; // CLI upgrade script $string['cli_upgrade_description'] = 'Upgrade the Mahara database and data to the version of Mahara installed.'; Loading
htdocs/lib/config-defaults.php +5 −5 Original line number Diff line number Diff line Loading @@ -1718,7 +1718,7 @@ $cfg->saml_log_attributes = false; * * Valid values: * - none : Nothing is logged in the database. * - masq : Only masquerading sessions are logged. This setting needs to be * - masquerade : Only masquerading sessions are logged. This setting needs to be * turned on if you wish to report on administrator masquerading of * account holders. * - all : All events that can be logged in the database are logged. Loading
htdocs/lib/db/upgrade.php +7 −0 Original line number Diff line number Diff line Loading @@ -2459,5 +2459,12 @@ function xmldb_core_upgrade($oldversion=0) { } } if ($oldversion < 2021042727) { if (get_config('eventloglevel') === 'masq') { set_config('eventloglevel', 'masquerade'); log_warn(get_string('updateeventlogconfigoption', 'admin'), true, false); } } return $status; }
htdocs/lib/mahara.php +1 −1 Original line number Diff line number Diff line Loading @@ -2086,7 +2086,7 @@ function handle_event($event, $data, $ignorefields = array()) { $parentuser = $USER->get('parentuser'); $eventloglevel = get_config('eventloglevel'); if ($eventloglevel === 'all' or ($parentuser and $eventloglevel === 'masq')) { or ($parentuser and $eventloglevel === 'masquerade')) { $logentry = (object) array( 'usr' => $USER->get('id'), 'realusr' => $parentuser ? $parentuser->id : $USER->get('id'), Loading