From dfd0e704de3e89333f021ffdf709031cc3b199eb Mon Sep 17 00:00:00 2001 From: Dimitris Efstathiou Date: Thu, 26 Sep 2024 12:54:38 +0300 Subject: [PATCH] pkp/pkp-lib#10459 Support for role assignment invitation --- pages/reviewer/ReviewerHandler.php | 5 ++++- registry/emailTemplates.xml | 5 +++-- 2 files changed, 7 insertions(+), 3 deletions(-) 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); } } } diff --git a/registry/emailTemplates.xml b/registry/emailTemplates.xml index 736686fbad0..b6acec8633a 100644 --- a/registry/emailTemplates.xml +++ b/registry/emailTemplates.xml @@ -77,6 +77,7 @@ - - + + +