Commit f8d819d7 authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic

Bug 1703465: filter deleted user from masquerading report

behatnotneeded

Change-Id: I12f79b49900f3a509de1ccf3e7776160ac7a8b00
parent 8571f155
......@@ -2978,7 +2978,7 @@ function masquerading_stats_table($limit, $offset, $extra, $institution, $urllin
$users = $SESSION->get('usersforstats');
$fromsql = " FROM {usr} u JOIN {event_log} e ON e.usr = u.id ";
$wheresql = " WHERE u.id != 0 AND e.event = 'loginas'";
$wheresql = " WHERE u.id != 0 AND u.deleted = 0 AND e.event = 'loginas'";
$where = array();
if ($institution) {
$fromsql .= " JOIN {usr_institution} ui ON (ui.usr = u.id AND ui.institution = ?)";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment