|
|
|
|
|
|
|
|
Boolean isRequestedFromWeb) { |
|
|
Boolean isRequestedFromWeb) { |
|
|
// Optional<TBCropDTO> tBCropDTO = tBCropService.findOne(id); |
|
|
// Optional<TBCropDTO> tBCropDTO = tBCropService.findOne(id); |
|
|
|
|
|
|
|
|
// if (!userRoleUtil.currentUserHasPermissionByCropId(tBCropDTO.getId())) { |
|
|
|
|
|
// throw new BadRequestAlertException("1018", ENTITY_NAME, "1018"); |
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
if (!userRoleUtil.currentUserHasPermissionByCropId(tBCropDTO.getId())) { |
|
|
|
|
|
throw new BadRequestAlertException("1018", ENTITY_NAME, "1018"); |
|
|
|
|
|
} |
|
|
Optional<UserDTO> currentUser = userService.getCurrentUserDTO(); |
|
|
Optional<UserDTO> currentUser = userService.getCurrentUserDTO(); |
|
|
TBCodeDetailsAndActivityDTO tbCodeDetailsAndActivityDTO = new TBCodeDetailsAndActivityDTO(); |
|
|
TBCodeDetailsAndActivityDTO tbCodeDetailsAndActivityDTO = new TBCodeDetailsAndActivityDTO(); |
|
|
tbCodeDetailsAndActivityDTO.setTbCropDTO(tBCropDTO); |
|
|
tbCodeDetailsAndActivityDTO.setTbCropDTO(tBCropDTO); |