Skip to content

Commit

Permalink
#50 Ambiguous error message for unauthorized prepublication access
Browse files Browse the repository at this point in the history
  • Loading branch information
ewhanson committed Nov 15, 2024
1 parent 06e13c1 commit f33d202
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OAIMetadataFormat_JATS.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function toXml($record, $format = null) {
$isSubscribedDomain = $issueAction->subscribedDomain(Application::get()->getRequest(), $journal, $issue->getId(), $article->getId());
$allowedPrePublicationAccess = $issueAction->allowedIssuePrePublicationAccess($journal, $request->getUser());
if ($subscriptionRequired && (!$allowedPrePublicationAccess && !$isSubscribedDomain)) {
$oaiDao->oai->error('cannotDisseminateFormat', 'Cannot disseminate format (JATS XML not available)');
$oaiDao->oai->error('cannotDisseminateFormat', 'Cannot disseminate format (unauthenticated access to JATS XML not allowed)');
exit();
}

Expand Down

0 comments on commit f33d202

Please sign in to comment.