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 7511c7d commit 3980d4fCopy full SHA for 3980d4f
src/main/java/life/mosu/mosuserver/presentation/profile/ProfileController.java
@@ -37,7 +37,7 @@ public ResponseEntity<ApiResponseWrapper<Void>> create(
37
}
38
39
@PutMapping
40
- @PreAuthorize("isAuthenticated() and hasRole('USER')")
+ @PreAuthorize("hasRole('USER')")
41
public ResponseEntity<ApiResponseWrapper<Void>> update(
42
@UserId Long userId,
43
@Valid @RequestBody EditProfileRequest request
@@ -47,7 +47,7 @@ public ResponseEntity<ApiResponseWrapper<Void>> update(
47
48
49
@GetMapping
50
51
public ResponseEntity<ApiResponseWrapper<ProfileDetailResponse>> getProfile(
52
@UserId Long userId
53
) {
0 commit comments