feat(BE-ExpenseApproval): add unit vice president approval step and permissions

This commit is contained in:
aguhh18
2026-01-11 20:10:19 +07:00
parent 4ee5bf3628
commit 3422fceec7
7 changed files with 60 additions and 48 deletions
@@ -233,6 +233,8 @@ func (u *ExpenseController) Approval(c *fiber.Ctx) error {
approvalType = "manager"
} else if strings.Contains(path, "/approvals/finance") {
approvalType = "finance"
} else if strings.Contains(path, "/approvals/unit-vice-president") {
approvalType = "unit-vice-president"
} else {
return fiber.NewError(fiber.StatusBadRequest, "Invalid approval path")
}