parent
387d364861
commit
dc74d203bd
|
@ -76,6 +76,7 @@ class SecurityConfig(
|
|||
.antMatchers("/charge/ads").permitAll()
|
||||
.antMatchers("/v2/audio-content/main/home").permitAll()
|
||||
.antMatchers("/v2/audio-content/main/home/popular-content-by-creator").permitAll()
|
||||
.antMatchers("/audio-content/ranking").permitAll()
|
||||
.anyRequest().authenticated()
|
||||
.and()
|
||||
.build()
|
||||
|
|
|
@ -184,8 +184,6 @@ class AudioContentController(private val service: AudioContentService) {
|
|||
@AuthenticationPrincipal(expression = "#this == 'anonymousUser' ? null : member") member: Member?,
|
||||
pageable: Pageable
|
||||
) = run {
|
||||
if (member == null) throw SodaException("로그인 정보를 확인해주세요.")
|
||||
|
||||
val currentDateTime = LocalDateTime.now()
|
||||
val startDate = currentDateTime
|
||||
.withHour(15)
|
||||
|
@ -198,7 +196,7 @@ class AudioContentController(private val service: AudioContentService) {
|
|||
|
||||
ApiResponse.ok(
|
||||
service.getAudioContentRanking(
|
||||
isAdult = member.auth != null && (isAdultContentVisible ?: true),
|
||||
isAdult = member?.auth != null && (isAdultContentVisible ?: true),
|
||||
contentType = contentType ?: ContentType.ALL,
|
||||
startDate = startDate,
|
||||
endDate = endDate,
|
||||
|
|
Loading…
Reference in New Issue