Skip to content

공지사항 회원 검사 변경 (queryparam을 ID로 => JWT토큰으로 ID 추출) #19

@Lee-Jong-Jin

Description

@Lee-Jong-Jin

공지사항 회원 검사 변경

  • 매개변수 변경
    Long id => Authentication authentication

  • 역할로 예외처리 기능 추가(주석 처리, 추후 추가 기능)
    // if (member.getPosition().getRole().equals( "(* 해당하는 role 값의 문자열 *)" )) {
    // throw new SecurityException("관리자만 공지를 작성할 수 있습니다.");
    // }

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions