Skip to content

Commit

Permalink
pkp#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 jardakotesovec committed Apr 29, 2024
1 parent 62f761d commit 359756b
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 359756b

Please sign in to comment.