diff --git a/classes/security/authorization/internal/SubmissionFileAssignedReviewerAccessPolicy.php b/classes/security/authorization/internal/SubmissionFileAssignedReviewerAccessPolicy.php index 12d9a2b4327..936a70c43cf 100644 --- a/classes/security/authorization/internal/SubmissionFileAssignedReviewerAccessPolicy.php +++ b/classes/security/authorization/internal/SubmissionFileAssignedReviewerAccessPolicy.php @@ -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()) {