Skip to content

Commit

Permalink
#10090 Ensure anonymity in discussions for double-blind review
Browse files Browse the repository at this point in the history
  • Loading branch information
Hafsa-Naeem committed Sep 12, 2024
1 parent d465b5a commit 8dea199
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions controllers/grid/queries/form/QueryForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -319,13 +319,11 @@ public function fetch($request, $template = null, $display = false, $actionArgs
// if current user is an anonymous reviewer, filter out authors
foreach ($reviewAssignments as $reviewAssignment) {
if ($reviewAssignment->getReviewerId() == $user->getId()) {
if ($reviewAssignment->getReviewMethod() != ReviewAssignment::SUBMISSION_REVIEW_METHOD_OPEN) {
// Replaces StageAssignmentDAO::getBySubmissionAndRoleId
if ($reviewAssignment->getReviewMethod() == ReviewAssignment::SUBMISSION_REVIEW_METHOD_DOUBLEANONYMOUS ) {
// exclude authors from the list of participants to ensure anonymity
$excludeUsers = StageAssignment::withSubmissionIds([$query->getAssocId()])
->withRoleIds([Role::ROLE_ID_AUTHOR])
->withUserId($user->getId())
->get()
->pluck('userId')
->pluck('user_id')
->all();
}
}
Expand Down

0 comments on commit 8dea199

Please sign in to comment.