Browse Source

update leave

tags/Baseline_30082024_BACKEND_UAT
cyril.tsui 1 year ago
parent
commit
d4d4b55127
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/main/java/com/ffii/tsms/modules/timesheet/service/LeaveService.kt

+ 2
- 2
src/main/java/com/ffii/tsms/modules/timesheet/service/LeaveService.kt View File

@@ -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)



Loading…
Cancel
Save