Skip to content

Commit

Permalink
Fixed issue with working copy not being returned from /api/records/{m…
Browse files Browse the repository at this point in the history
…etadataUuid}/formatters/{formatterId:.+}

This affect PDF exports on working copies.
  • Loading branch information
ianwallen committed Jul 19, 2024
1 parent 111a1d7 commit d178340
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ public void getRecordFormattedBy(
language = isoLanguagesMapper.iso639_2T_to_iso639_2B(locale.getISO3Language());
}

AbstractMetadata metadata = ApiUtils.canViewRecord(metadataUuid, servletRequest);
AbstractMetadata metadata = ApiUtils.canViewRecord(metadataUuid, approved, servletRequest);

if (approved) {
metadata = ApplicationContextHolder.get().getBean(MetadataRepository.class).findOneByUuid(metadataUuid);
Expand Down

0 comments on commit d178340

Please sign in to comment.