diff --git a/lib/pkp b/lib/pkp index e453134f443..0f866e88033 160000 --- a/lib/pkp +++ b/lib/pkp @@ -1 +1 @@ -Subproject commit e453134f4433953366dfd787220936b7c97ea905 +Subproject commit 0f866e88033621e8da0825bfe78b620308daf842 diff --git a/pages/reviewer/ReviewerHandler.php b/pages/reviewer/ReviewerHandler.php index edfeeb738dc..e72dcb2d97e 100644 --- a/pages/reviewer/ReviewerHandler.php +++ b/pages/reviewer/ReviewerHandler.php @@ -18,6 +18,7 @@ use APP\core\Request; use APP\facades\Repo; +use PKP\invitation\core\enums\InvitationAction; use PKP\pages\reviewer\PKPReviewerHandler; use PKP\security\authorization\SubmissionAccessPolicy; use PKP\security\Role; @@ -55,7 +56,9 @@ public function authorize($request, &$args, $roleAssignments) $invitation = Repo::invitation()->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 b27bd8d53db..5d29110f3fb 100644 --- a/registry/emailTemplates.xml +++ b/registry/emailTemplates.xml @@ -71,4 +71,5 @@ +