Skip to content

Commit

Permalink
Update src/libs/ReportUtils.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Youssef Lourayad <youssef@expensify.com>
  • Loading branch information
nkdengineer and youssef-lr authored Aug 28, 2024
1 parent ba3c5d1 commit 10ea8cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6308,7 +6308,7 @@ function canRequestMoney(report: OnyxEntry<Report>, policy: OnyxEntry<Policy>, o
}

// Current user must be a manager or owner of this IOU
if (currentUserAccountID !== report?.managerID && currentUserAccountID !== report?.ownerAccountID) {
if (isIOUReport(report) && currentUserAccountID !== report?.managerID && currentUserAccountID !== report?.ownerAccountID) {
return false;
}

Expand Down

0 comments on commit 10ea8cb

Please sign in to comment.