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:.+} (geonetwork#8269)

This affect PDF exports on working copies.
  • Loading branch information
ianwallen authored Jul 22, 2024
1 parent 564771f commit fb966e3
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 fb966e3

Please sign in to comment.