We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 501834b commit 823669eCopy full SHA for 823669e
src/main/java/com/example/log4u/domain/user/controller/UserController.java
@@ -86,9 +86,7 @@ public ResponseEntity<UserProfileResponseDto> getMyProfile(
86
@AuthenticationPrincipal CustomOAuth2User customOAuth2User
87
) {
88
if (customOAuth2User.getRole().equals("ROLE_GUEST")) {
89
- return ResponseEntity.status(HttpStatus.FOUND)
90
- .location(URI.create(UrlConstants.PROFILE_CREATE_URL))
91
- .build();
+ return ResponseEntity.status(HttpStatus.FORBIDDEN).build();
92
}
93
94
UserProfileResponseDto userProfileResponseDto =
0 commit comments