diff --git a/pages/reviewer/ReviewerHandler.php b/pages/reviewer/ReviewerHandler.php index aa5b9899537..270c3ba21b8 100644 --- a/pages/reviewer/ReviewerHandler.php +++ b/pages/reviewer/ReviewerHandler.php @@ -20,6 +20,7 @@ use APP\submission\reviewer\form\ReviewerReviewStep3Form; use APP\submission\Submission; use PKP\core\PKPRequest; +use PKP\invitation\core\enums\InvitationAction; use PKP\pages\reviewer\PKPReviewerHandler; use PKP\security\authorization\SubmissionAccessPolicy; use PKP\security\Role; @@ -64,7 +65,9 @@ public function authorize($request, &$args, $roleAssignments) ->getByKey($accessKeyCode); if (isset($invitation)) { - $invitation->acceptHandle($request); + $invitationHandler = $invitation->getInvitationActionRedirectController(); + $invitationHandler->preRedirectActions(InvitationAction::ACCEPT); + $invitationHandler->acceptHandle($request); } } }