From 0764247447a5ad6a0ab7ad9dac4a6c18ce809715 Mon Sep 17 00:00:00 2001 From: Klaus Date: Sat, 22 Mar 2025 05:09:08 +0900 Subject: [PATCH] =?UTF-8?q?=EC=98=A4=EB=94=94=EC=85=98=20=EB=A9=94?= =?UTF-8?q?=EC=9D=B8=20-=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=EC=97=86?= =?UTF-8?q?=EC=9D=B4=20=EC=A1=B0=ED=9A=8C=20=EA=B0=80=EB=8A=A5=ED=95=98?= =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kr/co/vividnext/sodalive/audition/AuditionController.kt | 4 +--- .../kotlin/kr/co/vividnext/sodalive/configs/SecurityConfig.kt | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/audition/AuditionController.kt b/src/main/kotlin/kr/co/vividnext/sodalive/audition/AuditionController.kt index ce4593c..527d4f1 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/audition/AuditionController.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/audition/AuditionController.kt @@ -18,13 +18,11 @@ class AuditionController(private val service: AuditionService) { @AuthenticationPrincipal(expression = "#this == 'anonymousUser' ? null : member") member: Member?, pageable: Pageable ) = run { - if (member == null) throw SodaException("로그인 정보를 확인해주세요.") - ApiResponse.ok( service.getAuditionList( offset = pageable.offset, limit = pageable.pageSize.toLong(), - isAdult = member.auth != null + isAdult = member?.auth != null ) ) } diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/configs/SecurityConfig.kt b/src/main/kotlin/kr/co/vividnext/sodalive/configs/SecurityConfig.kt index 6af8db9..efe74dc 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/configs/SecurityConfig.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/configs/SecurityConfig.kt @@ -80,6 +80,7 @@ class SecurityConfig( .antMatchers("/v2/audio-content/main/home/content/ranking").permitAll() .antMatchers(HttpMethod.GET, "/faq").permitAll() .antMatchers(HttpMethod.GET, "/faq/category").permitAll() + .antMatchers("/audition").permitAll() .anyRequest().authenticated() .and() .build()