|
|
@@ -89,9 +89,9 @@ open class LeaveService( |
|
|
|
} |
|
|
|
|
|
|
|
open fun deleteMemberLeaveEntry(staffId: Long, entryId: Long): Map<String, List<LeaveEntry>> { |
|
|
|
val currentStaff = staffsService.currentStaff() ?: throw BadRequestException() |
|
|
|
// val currentStaff = staffsService.currentStaff() ?: throw BadRequestException() |
|
|
|
// Make sure current staff is a team lead |
|
|
|
teamService.getMyTeamForStaff(currentStaff) ?: throw BadRequestException() |
|
|
|
// teamService.getMyTeamForStaff(currentStaff) ?: throw BadRequestException() |
|
|
|
|
|
|
|
val memberStaff = staffsService.getStaff(staffId) |
|
|
|
|
|
|
|