From 5153ac591eb6048b84d115aced9d16ab15b18c6d Mon Sep 17 00:00:00 2001 From: yingfeng Date: Thu, 2 Nov 2023 10:43:29 -0400 Subject: [PATCH 1/2] AMP-3054: fix AC for media loading --- src/components/entity/EntityList.vue | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/entity/EntityList.vue b/src/components/entity/EntityList.vue index 896d8ab2..c5ce76e9 100644 --- a/src/components/entity/EntityList.vue +++ b/src/components/entity/EntityList.vue @@ -1354,16 +1354,18 @@ export default { self.showEdit = false; } } else if (self.baseUrl === "file") { - let mediaSourceUrl = await self.workflowResultService.getMediaSymlink( - self.selectedFile.id - ); - console.log("mediaSourceUrl = " + mediaSourceUrl); + if (self.accessControl._primaryfile_media._read) { + let mediaSourceUrl = await self.workflowResultService.getMediaSymlink( + self.selectedFile.id + ); + console.log("mediaSourceUrl = " + mediaSourceUrl); + self.entity["mediaSource"] = mediaSourceUrl; + } let mediaSourceType = await self.primaryFileService.getPrimaryFile( self.selectedFile.id ); self.selectedFile["mediaInfo"] = mediaSourceType.mediaInfo; self.entity = self.selectedFile; - self.entity["mediaSource"] = mediaSourceUrl; self.entity["mediaType"] = mediaSourceType.mimeType.substring(0, 5); self.showLoader = false; } From d8dd9fe98298d45ea250098671918c313ea52700 Mon Sep 17 00:00:00 2001 From: yingfeng Date: Thu, 2 Nov 2023 18:15:04 -0400 Subject: [PATCH 2/2] AMP-3053: - fix output links for PFile and MGM test vis page --- src/components/entity/OutputFile.vue | 4 ++-- src/components/evaluation/TestResultsVisualiz.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/entity/OutputFile.vue b/src/components/entity/OutputFile.vue index c2a53234..0c2be244 100644 --- a/src/components/entity/OutputFile.vue +++ b/src/components/entity/OutputFile.vue @@ -34,7 +34,7 @@ - +

{{ new Date(output.dateCreated) | LOCAL_DATE_VALUE }}

@@ -73,7 +73,7 @@ disabled /> --> {{ testResult.primaryFilename }} ({{ testResult.workflowResult.workflowStep