Skip to content

Commit

Permalink
invitation-api-userRoleAssignment ReviewHandler fix
Browse files Browse the repository at this point in the history
  • Loading branch information
defstat committed Sep 2, 2024
1 parent e3b889d commit a941c32
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pages/reviewer/ReviewerHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit a941c32

Please sign in to comment.