Skip to content

Commit 4e44e6e

Browse files
committed
Update UserProfileController.java
1 parent 8e80ad8 commit 4e44e6e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

profile-service/src/main/java/com/codecampus/profile/controller/UserProfileController.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import lombok.experimental.FieldDefaults;
1616
import lombok.extern.slf4j.Slf4j;
1717
import org.springframework.http.MediaType;
18-
import org.springframework.security.access.prepost.PreAuthorize;
1918
import org.springframework.web.bind.annotation.GetMapping;
2019
import org.springframework.web.bind.annotation.PatchMapping;
2120
import org.springframework.web.bind.annotation.PathVariable;
@@ -45,7 +44,6 @@ ApiResponse<UserProfileResponse> getUserProfileByUserId(
4544
.build();
4645
}
4746

48-
@PreAuthorize("hasRole('ADMIN')")
4947
@GetMapping("/users")
5048
ApiResponse<PageResponse<UserProfileResponse>> getAllUserProfiles(
5149
@RequestParam(value = "page", defaultValue = "1") int page,

0 commit comments

Comments
 (0)