From d6da26903049564899a5149325a275f5cc70bd1c Mon Sep 17 00:00:00 2001 From: Youssef Lourayad Date: Tue, 9 Jan 2024 22:56:14 +0100 Subject: [PATCH] Allow admins/managers to see RBR errors on reports --- src/components/ReportActionItem/MoneyRequestView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ReportActionItem/MoneyRequestView.js b/src/components/ReportActionItem/MoneyRequestView.js index 37ff163f23c8..183134af04aa 100644 --- a/src/components/ReportActionItem/MoneyRequestView.js +++ b/src/components/ReportActionItem/MoneyRequestView.js @@ -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');