콘텐츠 테마 API 권한 수정

This commit is contained in:
Klaus 2024-02-17 21:00:13 +09:00
parent 70255273ed
commit b6cdeee548
1 changed files with 1 additions and 1 deletions

View File

@ -15,9 +15,9 @@ import org.springframework.web.bind.annotation.RestController
@RestController
@RequestMapping("/audio-content/theme")
@PreAuthorize("hasRole('CREATOR')")
class AudioContentThemeController(private val service: AudioContentThemeService) {
@GetMapping
@PreAuthorize("hasRole('CREATOR')")
fun getThemes(
@AuthenticationPrincipal(expression = "#this == 'anonymousUser' ? null : member") member: Member?
) = run {