Skip to content

Commit

Permalink
Merge pull request #47563 from allgandalf/patch-7
Browse files Browse the repository at this point in the history
  • Loading branch information
youssef-lr authored Aug 16, 2024
2 parents 578006f + ae086f4 commit b36280a
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 @@ -2956,7 +2956,7 @@ function canEditMoneyRequest(reportAction: OnyxInputOrEntry<ReportAction<typeof
}

if (policy?.type === CONST.POLICY.TYPE.CORPORATE && moneyRequestReport && isSubmitted && isCurrentUserSubmitter(moneyRequestReport.reportID)) {
const isForwarded = PolicyUtils.getSubmitToAccountID(policy, moneyRequestReport.ownerAccountID ?? 0) !== moneyRequestReport.managerID;
const isForwarded = PolicyUtils.getSubmitToAccountID(policy, moneyRequestReport.ownerAccountID ?? -1) !== moneyRequestReport.managerID;
return !isForwarded;
}

Expand Down

0 comments on commit b36280a

Please sign in to comment.