메뉴 권한별 레디스저장 권한 조건 추가

This commit is contained in:
2025-12-19 16:22:07 +09:00
parent 2760cabdd5
commit 7a585e70d7
3 changed files with 6 additions and 8 deletions

View File

@@ -60,6 +60,10 @@ public class SecurityConfig {
// ADMIN, REVIEWER 접근
.requestMatchers("/api/test/review")
.hasAnyRole("ADMIN", "REVIEWER")
// 메뉴 등록 ADMIN만 가능
.requestMatchers(HttpMethod.POST, "/api/menu/auth")
.hasAnyRole("ADMIN")
.requestMatchers("/error")
.permitAll()
.requestMatchers(HttpMethod.OPTIONS, "/**")