Commit bd5f28f7 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Merge "Bug 1703465: filter deleted user from masquerading report"

parents a74c6204 f8d819d7
......@@ -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