261022_02_ENH: Class에서 record로 변경가능한 Dto들 record로 변경
This commit is contained in:
@@ -32,12 +32,12 @@ public class LogController {
|
||||
ShareLinkDto link =
|
||||
(ShareLinkDto) servletRequest.getAttribute(KartConstant.REQUEST_LINK_ATTRIBUTE);
|
||||
if (link != null
|
||||
&& (link.getProjectType() != request.getProjectType()
|
||||
|| !link.getPkey().equals(request.getPkey()))) {
|
||||
&& (link.projectType() != request.projectType()
|
||||
|| !link.pkey().equals(request.pkey()))) {
|
||||
throw BusinessException.forbidden("EXTERNAL_SCOPE_DENIED", "공유 프로젝트의 방문 로그만 기록할 수 있습니다.");
|
||||
}
|
||||
logService.writeVisitLog(
|
||||
request.getProjectType(), request.getPkey(), request.getLogContent(), ctx);
|
||||
request.projectType(), request.pkey(), request.logContent(), ctx);
|
||||
return "PASS";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user