From 39bc86807aae4b9c382b142504a0abd7b54ea0d1 Mon Sep 17 00:00:00 2001 From: Dimitris Efstathiou Date: Mon, 22 Jul 2024 11:03:23 +0300 Subject: [PATCH 1/3] invitation-api-userRoleAssignment Initial Commit --- registry/emailTemplates.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 @@ - - + + + From dcd7245a23dc00b365d4fbcfd94e9e1342f3f877 Mon Sep 17 00:00:00 2001 From: Dimitris Efstathiou Date: Mon, 2 Sep 2024 18:56:18 +0300 Subject: [PATCH 2/3] 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); } } } From 8b76ce5b36d04f5a11b5cf56ee9cd365b54d1ff7 Mon Sep 17 00:00:00 2001 From: Dimitris Efstathiou Date: Thu, 26 Sep 2024 12:13:57 +0300 Subject: [PATCH 3/3] Submodule update ##defstat/invitation-api-userRoleAssignment## --- lib/pkp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pkp b/lib/pkp index 80f1467d6ef..5b4e0b326fa 160000 --- a/lib/pkp +++ b/lib/pkp @@ -1 +1 @@ -Subproject commit 80f1467d6ef2da5976c8e8bc7210e9e944c40f58 +Subproject commit 5b4e0b326faab95a22d8b34b249b07a4b1c6d814