Navigation Menu

Skip to content

Commit

Permalink
MDL-59994 core_competency: dont list competencies from deleted users
Browse files Browse the repository at this point in the history
  • Loading branch information
lameze committed Sep 18, 2017
1 parent cc60733 commit c225ebf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion competency/classes/api.php
Expand Up @@ -1349,7 +1349,8 @@ public static function list_user_competencies_to_review($skip = 0, $limit = 50,
JOIN {user} u
ON u.id = uc.userid
WHERE (uc.status = :waitingforreview
OR (uc.status = :inreview AND uc.reviewerid = :reviewerid))";
OR (uc.status = :inreview AND uc.reviewerid = :reviewerid))
AND u.deleted = 0";
$ordersql = " ORDER BY c.shortname ASC";
$params = array(
'inreview' => user_competency::STATUS_IN_REVIEW,
Expand Down

0 comments on commit c225ebf

Please sign in to comment.