Skip to content

Commit

Permalink
[Quiz] fixes papers list
Browse files Browse the repository at this point in the history
  • Loading branch information
Elorfin committed Aug 16, 2022
1 parent 9eb67fa commit 1e7d354
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/plugin/exo/Finder/PaperFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,10 @@ public function configureQueryBuilder(QueryBuilder $qb, array $searches = [], ar
$userJoin = false;
if (!array_key_exists('userDisabled', $searches) && !array_key_exists('user', $searches)) {
// don't show evaluation of disabled/deleted users
$qb->join('obj.user', 'u');
$qb->leftJoin('obj.user', 'u');
$userJoin = true;

$qb->andWhere('u.isEnabled = TRUE');
$qb->andWhere('u.isRemoved = FALSE');
$qb->andWhere('(u.id IS NULL OR (u.isEnabled = TRUE AND u.isRemoved = FALSE))');
}

foreach ($searches as $filterName => $filterValue) {
Expand Down

0 comments on commit 1e7d354

Please sign in to comment.