Skip to content

Commit

Permalink
SAK-50963 Rubrics icon not displaying for peer review items (#13327)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgarciaentornos authored Feb 20, 2025
1 parent 5709822 commit 94e6418
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ public Optional<Evaluation> findByAssociationIdAndUserId(Long associationId, Str
Root<Evaluation> eval = query.from(Evaluation.class);
query.where(cb.and(cb.equal(eval.get("associationId"), associationId),
cb.equal(eval.get("evaluatedItemOwnerId"), userId),
cb.notEqual(eval.get("evaluatedItemId"), userId)));// SAK-50923 this is to prevent a self graded rubric from appearing as a regular rubric evaluation
cb.notEqual(eval.get("evaluatedItemId"), userId),// SAK-50923 this is to prevent a self graded rubric from appearing as a regular rubric evaluation
cb.notEqual(eval.get("evaluatedItemId"), eval.get("creatorId"))));// SAK-50963 this is to prevent a peer graded rubric from appearing as a regular rubric evaluation

return session.createQuery(query).uniqueResultOptional();
}
Expand Down

0 comments on commit 94e6418

Please sign in to comment.