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