feat(admin): 콘텐츠 관리자 읽기 권한을 확장한다

This commit is contained in:
2026-05-07 14:34:23 +09:00
parent 487c10d4d0
commit 85621cd107
5 changed files with 329 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ import org.springframework.web.bind.annotation.RestController
@RequestMapping("/menu")
class MenuController(private val service: MenuService) {
@GetMapping
@PreAuthorize("hasAnyRole('AGENT', 'ADMIN', 'CREATOR')")
@PreAuthorize("hasAnyRole('AGENT', 'ADMIN', 'CREATOR', 'CONTENT_MANAGER')")
fun getMenus(
@AuthenticationPrincipal(expression = "#this == 'anonymousUser' ? null : member") member: Member?
) = run {