콘텐츠 테마 API 권한 수정
This commit is contained in:
parent
70255273ed
commit
b6cdeee548
|
@ -15,9 +15,9 @@ import org.springframework.web.bind.annotation.RestController
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/audio-content/theme")
|
@RequestMapping("/audio-content/theme")
|
||||||
@PreAuthorize("hasRole('CREATOR')")
|
|
||||||
class AudioContentThemeController(private val service: AudioContentThemeService) {
|
class AudioContentThemeController(private val service: AudioContentThemeService) {
|
||||||
@GetMapping
|
@GetMapping
|
||||||
|
@PreAuthorize("hasRole('CREATOR')")
|
||||||
fun getThemes(
|
fun getThemes(
|
||||||
@AuthenticationPrincipal(expression = "#this == 'anonymousUser' ? null : member") member: Member?
|
@AuthenticationPrincipal(expression = "#this == 'anonymousUser' ? null : member") member: Member?
|
||||||
) = run {
|
) = run {
|
||||||
|
|
Loading…
Reference in New Issue