Skip to content

Commit

Permalink
#9453 Fix to get the ReviewAssignment and not the DAO in the policy
Browse files Browse the repository at this point in the history
  • Loading branch information
nibou230 authored and defstat committed May 1, 2024
1 parent 6faceef commit 563ec5c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ public function effect()
}

$context = $request->getContext();
$reviewAssignments = Repo::reviewAssignment()->getCollector()->filterByReviewerIds([$user->getId()])->getMany();
$reviewAssignments = Repo::reviewAssignment()->getCollector()
->filterByReviewerIds([$user->getId()])
->getMany();
$reviewFilesDao = DAORegistry::getDAO('ReviewFilesDAO'); /** @var ReviewFilesDAO $reviewFilesDao */
foreach ($reviewAssignments as $reviewAssignment) {
if ($context->getData('restrictReviewerFileAccess') && !$reviewAssignment->getDateConfirmed()) {
Expand Down

0 comments on commit 563ec5c

Please sign in to comment.