File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/main/java/com/somemore/volunteer/service Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 11package com .somemore .volunteer .service ;
22
3- import com .somemore .facade .validator .VolunteerDetailAccessValidator ;
3+ import com .somemore .facade .validator .VolunteerDetailAccessValidatorImpl ;
44import com .somemore .global .exception .BadRequestException ;
55import com .somemore .volunteer .domain .Volunteer ;
66import com .somemore .volunteer .domain .VolunteerDetail ;
@@ -25,7 +25,7 @@ public class VolunteerQueryService implements VolunteerQueryUseCase {
2525
2626 private final VolunteerRepository volunteerRepository ;
2727 private final VolunteerDetailRepository volunteerDetailRepository ;
28- private final VolunteerDetailAccessValidator volunteerDetailAccessValidator ;
28+ private final VolunteerDetailAccessValidatorImpl volunteerDetailAccessValidatorImpl ;
2929
3030 @ Override
3131 public VolunteerResponseDto getMyProfile (UUID volunteerId ) {
@@ -46,8 +46,7 @@ public VolunteerResponseDto getVolunteerProfile(UUID volunteerId) {
4646
4747 @ Override
4848 public VolunteerResponseDto getVolunteerDetailedProfile (UUID volunteerId , UUID centerId ) {
49- // TODO 권한 검사
50-
49+ volunteerDetailAccessValidatorImpl .validateByCenterId (centerId , volunteerId );
5150
5251 return VolunteerResponseDto .from (
5352 findVolunteer (volunteerId ),
You can’t perform that action at this time.
0 commit comments