From 564771f40c24ca1e5756428127aff17cebfcd0e1 Mon Sep 17 00:00:00 2001 From: Ian Date: Fri, 19 Jul 2024 12:00:20 -0300 Subject: [PATCH] Fixed issue with working copy not being returned from getRecordAS api (#8265) --- .../src/main/java/org/fao/geonet/api/records/MetadataApi.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/src/main/java/org/fao/geonet/api/records/MetadataApi.java b/services/src/main/java/org/fao/geonet/api/records/MetadataApi.java index 64bb64c4200..c62a7c4a76c 100644 --- a/services/src/main/java/org/fao/geonet/api/records/MetadataApi.java +++ b/services/src/main/java/org/fao/geonet/api/records/MetadataApi.java @@ -366,7 +366,7 @@ private Object getRecordAs( throws Exception { AbstractMetadata metadata; try { - metadata = ApiUtils.canViewRecord(metadataUuid, request); + metadata = ApiUtils.canViewRecord(metadataUuid, approved, request); } catch (ResourceNotFoundException e) { Log.debug(API.LOG_MODULE_NAME, e.getMessage(), e); throw e;