Skip to content

Commit

Permalink
Merge pull request #34195 from Expensify/youssef_fix_admin_not_seeing…
Browse files Browse the repository at this point in the history
…_errors

Allow admins/managers to see RBR errors on reports

(cherry picked from commit 194d3c5)
  • Loading branch information
youssef-lr authored and OSBotify committed Jan 10, 2024
1 parent 81d8ced commit 01bf140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ReportActionItem/MoneyRequestView.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ function MoneyRequestView({report, parentReport, parentReportActions, policyCate
let hasErrors = false;
if (hasReceipt) {
receiptURIs = ReceiptUtils.getThumbnailAndImageURIs(transaction);
hasErrors = canEditReceipt && TransactionUtils.hasMissingSmartscanFields(transaction);
hasErrors = canEdit && TransactionUtils.hasMissingSmartscanFields(transaction);
}

const pendingAction = lodashGet(transaction, 'pendingAction');
Expand Down

0 comments on commit 01bf140

Please sign in to comment.