test #132

Merged
klaus merged 2 commits from test into main 2024-02-17 12:44:53 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit b6cdeee548 - Show all commits

View File

@ -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 {