Skip to content

Commit d88b6ed

Browse files
committed
test(VolunteerQueryService): 기관의 봉사자 상세 정보 조회에 대한 권한 검증 추가
1 parent e98e5bd commit d88b6ed

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/main/java/com/somemore/volunteer/service/VolunteerQueryService.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.somemore.volunteer.service;
22

3-
import com.somemore.facade.validator.VolunteerDetailAccessValidator;
3+
import com.somemore.facade.validator.VolunteerDetailAccessValidatorImpl;
44
import com.somemore.global.exception.BadRequestException;
55
import com.somemore.volunteer.domain.Volunteer;
66
import 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),

0 commit comments

Comments
 (0)