Skip to content
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

Merged
merged 2 commits into from
Oct 14, 2023

Conversation

lljh1992
Copy link
Collaborator

게시판 단건조회 기능 구현

Copy link
Member

@donsonioc2010 donsonioc2010 left a 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);
Copy link
Member

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()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/file/**의 경우 사용자만 사용가능한 영역이어야 하기 떄문에 permitAll에 두면 안될 것 같습니다.

제가 테스트로 보여드리느라 추가했던 코드라서 롤백해주셔야 할 것 같아요 :)

@donsonioc2010 donsonioc2010 added the enhancement New feature or request label Oct 14, 2023
@donsonioc2010 donsonioc2010 merged commit bcb1cd5 into dev Oct 14, 2023
1 check passed
@donsonioc2010 donsonioc2010 deleted the feat/31-board-pagination branch October 14, 2023 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants