MDL-65085 analytics: noreply user sends insights

This commit is contained in:
David Monllaó
2019-03-15 13:49:49 +01:00
parent f3ad037584
commit 5dfaf89ba2
+1 -1
View File
@@ -196,7 +196,7 @@ abstract class base extends \core_analytics\calculable {
$message->component = 'moodle';
$message->name = 'insights';
$message->userfrom = get_admin();
$message->userfrom = \core_user::get_noreply_user();
$message->userto = $user;
$insighturl = new \moodle_url('/report/insights/insights.php?modelid=' . $modelid . '&contextid=' . $context->id);