Skip to content

Commit 3980d4f

Browse files
committed
MOSU perf: 중복 검증 로직 제거
1 parent 7511c7d commit 3980d4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/life/mosu/mosuserver/presentation/profile/ProfileController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public ResponseEntity<ApiResponseWrapper<Void>> create(
3737
}
3838

3939
@PutMapping
40-
@PreAuthorize("isAuthenticated() and hasRole('USER')")
40+
@PreAuthorize("hasRole('USER')")
4141
public ResponseEntity<ApiResponseWrapper<Void>> update(
4242
@UserId Long userId,
4343
@Valid @RequestBody EditProfileRequest request
@@ -47,7 +47,7 @@ public ResponseEntity<ApiResponseWrapper<Void>> update(
4747
}
4848

4949
@GetMapping
50-
@PreAuthorize("isAuthenticated() and hasRole('USER')")
50+
@PreAuthorize("hasRole('USER')")
5151
public ResponseEntity<ApiResponseWrapper<ProfileDetailResponse>> getProfile(
5252
@UserId Long userId
5353
) {

0 commit comments

Comments
 (0)