From 9e679bf7871a073c94bcb3cce93e588042ad7f3f Mon Sep 17 00:00:00 2001 From: Klaus Date: Tue, 6 Aug 2024 20:32:59 +0900 Subject: [PATCH] =?UTF-8?q?=ED=81=AC=EB=A6=AC=EC=97=90=EC=9D=B4=ED=84=B0?= =?UTF-8?q?=20=EC=BB=A4=EB=AE=A4=EB=8B=88=ED=8B=B0=20-=20=EC=9C=A0?= =?UTF-8?q?=EB=A3=8C=20=EA=B8=80=EC=9D=BC=20=EB=96=84=20=ED=81=AC=EB=A6=AC?= =?UTF-8?q?=EC=97=90=EC=9D=B4=ED=84=B0=20=EB=B3=B8=EC=9D=B8=EC=9D=B8=20?= =?UTF-8?q?=EA=B2=BD=EC=9A=B0=20=EC=98=A4=EB=94=94=EC=98=A4=20URL=EC=9D=B4?= =?UTF-8?q?=20=EC=83=9D=EC=84=B1=EB=90=98=EB=8F=84=EB=A1=9D=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../profile/creatorCommunity/CreatorCommunityService.kt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/creatorCommunity/CreatorCommunityService.kt b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/creatorCommunity/CreatorCommunityService.kt index 11e3c72..7e483f9 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/creatorCommunity/CreatorCommunityService.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/creatorCommunity/CreatorCommunityService.kt @@ -214,7 +214,14 @@ class CreatorCommunityService( val existOrdered = useCanRepository.isExistOrdered(postId = it.id, memberId = memberId) - val audioUrl = if ((it.price <= 0 || existOrdered) && it.audioPath != null) { + val audioUrl = if ( + ( + it.price <= 0 || + existOrdered || + it.creatorId == memberId + ) && + it.audioPath != null + ) { audioContentCloudFront.generateSignedURL( resourcePath = it.audioPath, expirationTime = 1000 * 60 * 30 -- 2.40.1