결재 승인시 권한 체크

This commit is contained in:
2025-06-07 12:11:37 +09:00
parent 9534580d8d
commit 2d4e1397a1

View File

@@ -246,7 +246,7 @@ public class SapServiceImpl implements SapService {
public List<ZwfApprResponse> approve(ZwfApprApprovalRequest zwfApprApprovalRequest) {
User user = (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
List<ZwfApprResponse> zwfApprResponseList = new ArrayList<>();
// if (!zwfApprUpdateRequest.getBname().equals(user.getSabun())) throw new CustomException(ErrorCode.AUTHENTICATION_NOT_SUPPORT);
if (!zwfApprApprovalRequest.getBname().equals(user.getSabun())) throw new CustomException(ErrorCode.AUTHENTICATION_NOT_SUPPORT);
String aedat = CommonUtils.dateFormat("yyyyMMdd");
String aezet = CommonUtils.dateFormat("HHmmss");