Skip to content

Commit cd2688e

Browse files
committed
Allow Finance Team to Edit Receipts
1 parent 944da76 commit cd2688e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/backend/src/services/reimbursement-requests.services.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -591,10 +591,9 @@ export default class ReimbursementRequestService {
591591
if (reimbursementRequest.dateDeleted) {
592592
throw new DeletedException('Reimbursement Request', reimbursementRequestId);
593593
}
594-
595-
if (reimbursementRequest.recipientId !== submitter.userId) {
594+
if (reimbursementRequest.recipientId !== submitter.userId && !(await isUserLeadOrHeadOfFinanceTeam(submitter))) {
596595
throw new AccessDeniedException(
597-
'You do not have access to upload a receipt for this reimbursement request, only the creator can edit a reimbursement request'
596+
'You do not have access to upload a receipt for this reimbursement request, only the creator or a finance lead can edit a reimbursement request'
598597
);
599598
}
600599

0 commit comments

Comments
 (0)