-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat : 게시판 단건조회 기능 구현 #33
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
기능문제는 없고, 설정관련해서 롤백 필요한 코드 만 수정하면 Approve이후 Merge해놓겠습니다~
@@ -26,7 +26,7 @@ public static Long getCurrentUserId() { | |||
} | |||
|
|||
public User getUser() { | |||
return userRepository.findById(getCurrentUserId()).orElseThrow(()-> UserNotFoundException.EXCEPTION); | |||
return userRepository.findById(1L).orElseThrow(()-> UserNotFoundException.EXCEPTION); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
해당 코드는 롤백해주셔야할 것 같습니다.
테스트로 만들어 드렸던건데 같이 들어간거 같아요
@@ -43,7 +43,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti | |||
.authorizeHttpRequests(authorization -> authorization | |||
.requestMatchers( | |||
"/login", | |||
"/register", "/health").permitAll() | |||
"/register", "/health", "/file/**").permitAll() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/file/**
의 경우 사용자만 사용가능한 영역이어야 하기 떄문에 permitAll에 두면 안될 것 같습니다.
제가 테스트로 보여드리느라 추가했던 코드라서 롤백해주셔야 할 것 같아요 :)
게시판 단건조회 기능 구현