From 20936b24ebb4aa38ac51a996ecb241ab5e755cde Mon Sep 17 00:00:00 2001 From: Dimitris Efstathiou Date: Mon, 2 Sep 2024 18:56:18 +0300 Subject: [PATCH] invitation-api-userRoleAssignment ReviewHandler fix --- pages/reviewer/ReviewerHandler.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); } } }